I had a very similar issue. Looks like the space in Python path could be 
the issue. This is my answer from the *StackOverflow *question (Can't 
install via pip with Virtualenv 
<http://stackoverflow.com/questions/7911003/cant-install-via-pip-with-virtualenv/31978278#31978278>
):

I had a very similar issue on my *Windows 7* machine and struggled couple 
of days with that. Both paths, to my python distribution and to my VE *had 
spaces* in it. Couple of months before it worked fine. I found the 
following note on virtualenv website:


*Windows Notes*[...] To create a virtualenv under a path with spaces in it on 
Windows, you’ll need the win32api library installed.

The following steps lead me to success:

   1. Make sure I used pip to install virtualenv and it's the latest 
   version (pip-7.1.0). Result: *failure*.
   2. Install win32api. Result: *failure* (although there was some error at 
   the very end of installation process).
   3. Try to install my VE in a path without spaces. Result: *failure*.
   4. Reinstall my Anaconda python distribution to the path that didn't 
   contain the "[" and "]" brackets. VE had spaces in the path. Result: 
   *failure*.
   5. Reinstall my Anaconda python distribution to the path that also 
   didn't contain any spaces. The VE folder still had spaces in the path. 
   Result: *success!*

So at least the Anaconda (python) installation simple, *non space-pollutted 
path was crucial*. Maybe win32api installation was also important. Not sure.


On Tuesday, June 2, 2015 at 6:28:49 PM UTC+1, Steve Burrus wrote:
>
> *I hasve repeatedly tried now to set up the Django Virtual Environment 
> without any success! Just what am I doing wrong anyway?? I am at my "wit's 
> end"  trying to figure out what the specific problem is.*
>   
> *c:\Users\SteveB\Desktop>virtualenv steve1*
> *Using base prefix 'C:\\Python 3.5'*
> *New python executable in steve1\Scripts\python.exe*
> *Installing setuptools, pip, wheel...*
> *  Complete output from command 
> c:\Users\SteveB\Desk...1\Scripts\python.exe -c "import sys, pip; sys...d\"] 
> + sys.argv[1:]))" setuptools pip wheel:*
> *  Ignoring indexes: https://pypi.python.org/simple 
> <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, otherwise 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, otherwise 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, otherwise 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, otherwise 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, otherwise 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, otherwise 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:\Python 3.5\lib\runpy.py", line 170, in _run_module_as_main 
> "__main__", mod_spec)*
> *  File "C:\Python 3.5\lib\runpy.py", line 85, in _run_code exec(code, 
> run_globals)*
> *  File "C:\Python 3.5\Scripts\virtualenv.exe\__main__.py", line 9, in 
> <module>*
> *  File "C:\Python 3.5\lib\site-packages\virtualenv.py", line 832, in main 
> symlink=options.symlink)*
> *  File "C:\Python 3.5\lib\site-packages\virtualenv.py", line 1004, in 
> create_environment*
> *    install_wheel(to_install, py_executable, search_dirs)*
> *  File "C:\Python 3.5\lib\site-packages\virtualenv.py", line 969, in 
> install_wheel*
> *    'PIP_NO_INDEX': '1'*
> *  File "C:\Python 3.5\lib\site-packages\virtualenv.py", line 910, in 
> call_subprocess*
> *    % (cmd_desc, proc.returncode))*
> *OSError: Command c:\Users\SteveB\Desk...1\Scripts\python.exe -c "import 
> sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip wheel failed with 
> error code 1*
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/297b1b83-7d9a-4ce3-8d74-7b8f6633fb64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to