Trouble w. Setting Up Virtual Env.

323 views
Skip to first unread message

Steve Burrus

unread,
Jun 2, 2015, 1:28:49 PM6/2/15
to django...@googlegroups.com
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
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

Mike Dewhirst

unread,
Jun 2, 2015, 8:14:29 PM6/2/15
to django...@googlegroups.com
Steve

If you have uninstalled and reinstalled virtualenv exactly the way the
virtualenv docs require for Windows and you still get the same problem I
think your environment must be blocking things.

Maybe there is a virtualenv mailing list you could join and get some
help from virtualenv experts. I use it but I installed it some time ago
and it just works for me.

It will be well worth your time and effort to keep trying.

Good luck

Mike

On 3/06/2015 3:19 AM, 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/*
> */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...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@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/898eb3b7-a396-40d3-8ec6-4815d48c2263%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/898eb3b7-a396-40d3-8ec6-4815d48c2263%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Lukasz Przewlocki

unread,
Aug 13, 2015, 7:29:27 AM8/13/15
to Django users
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):

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, youll 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.

Reply all
Reply to author
Forward
0 new messages