How to recreate a virtual env in python

前端 未结 2 1835
我在风中等你
我在风中等你 2020-12-19 23:42

I have installed virtualenv and virtualenvwrapper on Ubuntu 16.04 I have created one enviroment named env1

$ sudo apt-get install python-pip
$ pip install vi         


        
2条回答
  •  臣服心动
    2020-12-20 00:31

    pip install virtualenvwrapper and use the cpvirtualenv command

    cpvirtualenv ENVNAME [TARGETENVNAME]
    

    http://virtualenvwrapper.readthedocs.io/en/latest/command_ref.html#cpvirtualenv

    Remember to heed the warning

    Copying virtual environments is not well supported. Each virtualenv has 
    path information hard-coded into it, and there may be cases where the copy 
    code does not know to update a particular file. Use with caution.
    

提交回复
热议问题