Python portable, linux & windows

I use linux at home, but at school we use Windows 7. I want python to be installed on my usb, and I can use it for both windows and linux (ubuntu 13.04). Is there a way I can install python on my USB drive to use both win and linux computers? I'm more interested in python 2.7. I have Wine installed on my Linux machine. It may not be perfect, but can I use portable python and run it under wine?

+4
source share
2 answers

You can install two python. Download Anaconda from http://continuum.io/ for linux and windows. Install them (on win and lin machines), and then create two environments on your USB using the conda package conda :

 # Windows conda create -p E:\pywin python all other packages you want # Linux conda create -p /mnt/usb/pylin python all other packages you want 

Then use the pywin environment for windows and pylin in linux.

 # Windows D:\pywin\python.exe your_script.py # Linux /mnt/usb/pylin/bin/python your_script.py 

With conda you can maintain the same packages in both environments so that you have everything you need on both systems ...

Or you can install Anaconda directly to USB, but this will require more space ...

+5
source

You can always try a browser-based solution with files located in TXT files on Google Drive or Dropbox. Skulpt.com syncs with GitHub so you can work that way.

0
source

Source: https://habr.com/ru/post/1258047/


All Articles