Do I need to have Python installed on my machine to run a code in a virtual environment?

Lucas Jofre

I want to create a python virtual environment in a Windows network folder, and then activate and use this venv on another computer. My question is, do I need to have python installed on all these machines that i want to use this virtual environment?

If so, why do I need to install python everywhere if it's already inside this venv i will create, along with all the necessary packages?

CYREX

Virtual environments are not designed to be portable. For instance, if you have entry points installed then moving them to another machine would break their shebang lines. And even if you do it on your local machine there's no guarantee something else wasn't structured to be directory-specific such as your username! Take in consideration that when creating Python venv, it will be pointed to your python path where your username is part of the path, so its not a good idea. Although why not upload py files to the cloud, share via Bluetooth to phone or copy-paste to a usb stick.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Which versions of python do I need to have on my machine

From Dev

How do I force my code to use 32-bit Python in a virtual environment?

From Dev

What SAS modules do I need to run my code?

From Dev

Do I have to install Ruby from source to get Ruby 2.2.0 and Rails 4.2.0 installed on my windows machine?

From Dev

do I have to have main function in my python code?

From Dev

How do I test whether an nltk resource is already installed on the machine running my code?

From Dev

git is unrecongised even I have installed it on my machine

From Dev

Do I have the correct Drivers for my machine?

From Dev

Once Anaconda is installed is there no need to install a virtual environment?

From Dev

Do I need CPU (or any) microcode in a QEMU/KVM virtual machine?

From Dev

What environment do I need to deploy the virtual-maas charm?

From Dev

If I am using inheritance in my c# code, do I need to have a "Type" column in the database?

From Dev

How can I see the source code of a gem installed on my machine?

From Java

Which version of Python do I have installed?

From Dev

Do I need MySQL installed on my local PC to use MySQLdb for Python to connect MySQL server remotely?

From Dev

How do I run unit tests on my Python code in Buildout?

From Dev

SSHed into my Vagrant virtual machine to run a python script...but the python script doesn't work unless I'm in the VM itself

From Dev

How do I check if my Java program is running in a virtual machine?

From Dev

How do I remotely access my ubuntu virtual machine?

From Dev

How do I remotely access my ubuntu virtual machine?

From Dev

Do I need to run both nginx and jetty on the server machine?

From Dev

How can i get a virtual machine installed on my samsung chromebook 3?

From Dev

How to run a compiled CUDA code on a machine that doesn't have the CUDA toolkit installed?

From Dev

Do I first need docker environment before starting my project?

From Dev

I have two version of python installed on my computer but one is not responding

From Dev

How many cores do I have in my machine?

From Dev

What do I need to do to my current code to make the program run a multiplication table (using a two dimensional array)?

From Dev

I have windows 7 os installed in virtual box .I want to install software in this os .How to do that?

From Dev

I have a strange output on my python code

Related Related

  1. 1

    Which versions of python do I need to have on my machine

  2. 2

    How do I force my code to use 32-bit Python in a virtual environment?

  3. 3

    What SAS modules do I need to run my code?

  4. 4

    Do I have to install Ruby from source to get Ruby 2.2.0 and Rails 4.2.0 installed on my windows machine?

  5. 5

    do I have to have main function in my python code?

  6. 6

    How do I test whether an nltk resource is already installed on the machine running my code?

  7. 7

    git is unrecongised even I have installed it on my machine

  8. 8

    Do I have the correct Drivers for my machine?

  9. 9

    Once Anaconda is installed is there no need to install a virtual environment?

  10. 10

    Do I need CPU (or any) microcode in a QEMU/KVM virtual machine?

  11. 11

    What environment do I need to deploy the virtual-maas charm?

  12. 12

    If I am using inheritance in my c# code, do I need to have a "Type" column in the database?

  13. 13

    How can I see the source code of a gem installed on my machine?

  14. 14

    Which version of Python do I have installed?

  15. 15

    Do I need MySQL installed on my local PC to use MySQLdb for Python to connect MySQL server remotely?

  16. 16

    How do I run unit tests on my Python code in Buildout?

  17. 17

    SSHed into my Vagrant virtual machine to run a python script...but the python script doesn't work unless I'm in the VM itself

  18. 18

    How do I check if my Java program is running in a virtual machine?

  19. 19

    How do I remotely access my ubuntu virtual machine?

  20. 20

    How do I remotely access my ubuntu virtual machine?

  21. 21

    Do I need to run both nginx and jetty on the server machine?

  22. 22

    How can i get a virtual machine installed on my samsung chromebook 3?

  23. 23

    How to run a compiled CUDA code on a machine that doesn't have the CUDA toolkit installed?

  24. 24

    Do I first need docker environment before starting my project?

  25. 25

    I have two version of python installed on my computer but one is not responding

  26. 26

    How many cores do I have in my machine?

  27. 27

    What do I need to do to my current code to make the program run a multiplication table (using a two dimensional array)?

  28. 28

    I have windows 7 os installed in virtual box .I want to install software in this os .How to do that?

  29. 29

    I have a strange output on my python code

HotTag

Archive