Failed to create virtual environment when using --relocatable option,what's wrong?

S

smith jack

all things works well without --relocatable option, the error info
when using --relocatable option is as follows :

F:\PythonEnv\djangoEnv>virtualenv f:\PythonEnv\djangoEnv2 --relocatable
PYTHONHOME is set. You *must* activate the virtualenv before using it
The environment doesn't have a file f:\PythonEnv\djangoEnv2\Scripts\activate_thi
s.py -- please re-run virtualenv on this environment to update it
Traceback (most recent call last):
File "E:\Tools\gov\tools\chrome_python\Scripts\virtualenv-script.py", line 7,
in ?
sys.exit(
File "e:\tools\gov\tools\chrome_python\lib\site-packages\virtualenv-1.6.4-py2.
4.egg\virtualenv.py", line 802, in main
make_environment_relocatable(home_dir)
File "e:\tools\gov\tools\chrome_python\lib\site-packages\virtualenv-1.6.4-py2.
4.egg\virtualenv.py", line 1338, in make_environment_relocatable
fixup_scripts(home_dir)
File "e:\tools\gov\tools\chrome_python\lib\site-packages\virtualenv-1.6.4-py2.
4.egg\virtualenv.py", line 1357, in fixup_scripts
for filename in os.listdir(bin_dir):
WindowsError: [Errno 3] : 'f:\\PythonEnv\\djangoEnv2\\Scripts/*.*'
 
A

alex23

The environment doesn't have a file f:\PythonEnv\djangoEnv2\Scripts\activate_thi
s.py -- please re-run virtualenv on this environment to update it

Although the docs aren't very clear, --relocatable should be run on
_existing_ virtualenvs. Don't think of it as an option for creating an
environment, but rather one for preparing an existing environment for
moving.

More importantly, it _must_ be re-run in order to remain relocatable
after any modules are installed.

But most important of all, from the documentation: "Also this does not
currently work on Windows."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top