Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #11555 > unrolled thread
| Started by | smith jack <thinke365@gmail.com> |
|---|---|
| First post | 2011-08-16 22:23 +0800 |
| Last post | 2011-08-17 20:08 -0700 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
Failed to create virtual environment when using --relocatable option, what's wrong? smith jack <thinke365@gmail.com> - 2011-08-16 22:23 +0800
Re: Failed to create virtual environment when using --relocatable option, what's wrong? alex23 <wuwei23@gmail.com> - 2011-08-17 20:08 -0700
| From | smith jack <thinke365@gmail.com> |
|---|---|
| Date | 2011-08-16 22:23 +0800 |
| Subject | Failed to create virtual environment when using --relocatable option, what's wrong? |
| Message-ID | <mailman.63.1313504629.27778.python-list@python.org> |
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/*.*'
[toc] | [next] | [standalone]
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Date | 2011-08-17 20:08 -0700 |
| Subject | Re: Failed to create virtual environment when using --relocatable option, what's wrong? |
| Message-ID | <c9ff8adf-0a1e-40ef-afa3-310b79721116@u6g2000prc.googlegroups.com> |
| In reply to | #11555 |
On Aug 17, 12:23 am, smith jack <thinke...@gmail.com> wrote: > 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."
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web