简体   繁体   English

Python virtualenv Windows

[英]Python virtualenv Windows

I am working my virtualenv with my Ubuntu system. 我正在使用Ubuntu系统运行virtualenv。 Is it possible to use this virtualenv in a Windows system without Python installation? 是否可以在没有安装Python的Windows系统中使用此virtualenv?

Thanks. 谢谢。

It's not, you need to install Python on Windows too and you will need to install the requirements again. 不是,您也需要在Windows上安装Python,并且需要再次安装需求。

On your Ubuntu system create a requirements.txt file with the command: 在您的Ubuntu系统上,使用以下命令创建requirements.txt文件:

pip freeze > requirements.txt

Then create a virtualenv on Windows, copy the previous file and install all the requirements with the following command: 然后在Windows上创建一个virtualenv,复制先前的文件并使用以下命令安装所有要求:

pip install -r requirements.txt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM