Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96581

Re: Cannot create a virtualenv

From Kev Dwyer <kevin.p.dwyer@gmail.com>
Subject Re: Cannot create a virtualenv
Date 2015-09-14 18:55 +0100
References <CAJ4+4aqorYu5jeJLgo8Ywd2axkS-g4RD8pxxiKt4yOXE63_tVA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.544.1442253376.8327.python-list@python.org> (permalink)

Show all headers | View raw


paul.hermeneutic@gmail.com wrote:

> - I downloaded and installed Python 3.5 64-bit onto a Windows 7 64-bit
> machine. - Using `pip install virtualenv` worked fine.
> - Now, it is time to create a virtualenv, but it is not working fine.
> - I had to add Python 3.5 to the PATH.
> - Any suggestions?
> 
> C:\ve>virtualenv -p "\Program Files\Python 3.5\python.exe" ve33
> Running virtualenv with interpreter C:\Program Files\Python 3.5\python.exe
> Using base prefix 'C:\\Program Files\\Python 3.5'
> New python executable in ve33\Scripts\python.exe
> Installing setuptools, pip, wheel...
>   Complete output from command C:\ve\ve33\Scripts\python.exe -c
> "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip wheel:
>   Ignoring indexes: https://pypi.python.org/simple
> Collecting setuptools
>   The repository located at None is not a trusted or secure host and
> is being ignored. If this repository is available via HTTPS it is
> recommended to use HTTPS instead, otherwis
> e you may silence this warning and allow it anyways with '--trusted-host
> None'.
>   The repository located at None is not a trusted or secure host and
> is being ignored. If this repository is available via HTTPS it is
> recommended to use HTTPS instead, otherwis
> e you may silence this warning and allow it anyways with '--trusted-host
> None'.
>   The repository located at None is not a trusted or secure host and
> is being ignored. If this repository is available via HTTPS it is
> recommended to use HTTPS instead, otherwis
> e you may silence this warning and allow it anyways with '--trusted-host
> None'.
>   The repository located at None is not a trusted or secure host and
> is being ignored. If this repository is available via HTTPS it is
> recommended to use HTTPS instead, otherwis
> e you may silence this warning and allow it anyways with '--trusted-host
> None'.
>   The repository located at None is not a trusted or secure host and
> is being ignored. If this repository is available via HTTPS it is
> recommended to use HTTPS instead, otherwis
> e you may silence this warning and allow it anyways with '--trusted-host
> None'.
>   The repository located at None is not a trusted or secure host and
> is being ignored. If this repository is available via HTTPS it is
> recommended to use HTTPS instead, otherwis
> e you may silence this warning and allow it anyways with '--trusted-host
> None'.
>   The repository located at None is not a trusted or secure host and
> is being ignored. If this repository is available via HTTPS it is
> recommended to use HTTPS instead, otherwis
> e you may silence this warning and allow it anyways with '--trusted-host
> None'.
>   The repository located at None is not a trusted or secure host and
> is being ignored. If this repository is available via HTTPS it is
> recommended to use HTTPS instead, otherwis
> e you may silence this warning and allow it anyways with '--trusted-host
> None'.
>   The repository located at None is not a trusted or secure host and
> is being ignored. If this repository is available via HTTPS it is
> recommended to use HTTPS instead, otherwis
> e you may silence this warning and allow it anyways with '--trusted-host
> None'.
>   Could not find a version that satisfies the requirement setuptools
> (from versions: )
> No matching distribution found for setuptools
> ----------------------------------------
> ...Installing setuptools, pip, wheel...done.
> Traceback (most recent call last):
>   File "c:\program files\python 3.5\lib\site-packages\virtualenv.py",
> line 2363, in <module>
>     main()
>   File "c:\program files\python 3.5\lib\site-packages\virtualenv.py",
> line 832, in main
>     symlink=options.symlink)
>   File "c:\program files\python 3.5\lib\site-packages\virtualenv.py",
> line 1004, in create_environment
>     install_wheel(to_install, py_executable, search_dirs)
>   File "c:\program files\python 3.5\lib\site-packages\virtualenv.py",
> line 969, in install_wheel
>     'PIP_NO_INDEX': '1'
>   File "c:\program files\python 3.5\lib\site-packages\virtualenv.py",
> line 910, in call_subprocess
>     % (cmd_desc, proc.returncode))
> OSError: Command C:\ve\ve33\Scripts\python.exe -c "import sys, pip;
> sys...d\"] + sys.argv[1:]))" setuptools pip wheel failed with error
> code 1


Have you tried using the venv module?

https://docs.python.org/3/library/venv.html

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Cannot create a virtualenv Kev Dwyer <kevin.p.dwyer@gmail.com> - 2015-09-14 18:55 +0100

csiph-web