How to use python virtual environment in another computer

后端 未结 3 1982
感动是毒
感动是毒 2020-12-28 09:35

I have created an virtual environment by using virtualenv pyenv in my linux system. Now i want to use the virtual environment in another computer. Can i direct

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-28 09:47

    You can use copy and paste it in another directory or computer, but its not a best way to use virtualenv. you better notedown your requirements in any txt file like requirement.txt and run the use pip freeze > requirement.txt to write all the requirements in requirement.txt

    script using pip.

    pip install -r requirement.txt
    

提交回复
热议问题