When I run
pip install virtualenvwrapper-win
in a PowerShell console I get the error:PS C:\Windows\system32> pip install virtualenvwrapper-win Collecting virtualenvwrapper-win Using cached virtualenvwrapper-win-1.2.1.zip Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'setuptools'
Command "python setup.py egg_info" failed with error code 1 in
I've tried doing
pip install setuptools
and also tried uninstalling and reinstalling and update but the error persists.
pip
andpython
executables have been added to environment variables.
score:1
virtualenvwrapper-win
is only intended for the DOS cmd.exe. From the README:
These scripts should work on any version of Windows (Windows XP, Windows Vista, Windows 7/8/10).
However, they only work in the regular command prompt. They will not work in Powershell. There are other virtualenvwrapper projects out there for Powershell.
score:1
Try installing the virtualenvwrapper-win
module manually by downloading the ZIP archive from here:
https://pypi.python.org/pypi/virtualenvwrapper-win
In your PowerShell console, go to the directory the archive downloaded to (mine goes to
C:\Users\user\Downloads\
) and run this to extract the archive:Expand-Archive .\virtualenvwrapper-win-1.2.1.zip
Still in PowerShell and in the same directory as above, run:
cd .\virtualenvwrapper-win-1.2.1\virtualenvwrapper-win-1.2.1\
Next, run:
python setup.py install
If all went well, you should see something like this:
PS C:\Users\user\Downloads\virtualenvwrapper-win-1.2.1\virtualenvwrapper-win-1.2.1> python .\setup.py install
running install
running bdist_egg
running egg_info
writing virtualenvwrapper_win.egg-info\PKG-INFO
writing dependency_links to virtualenvwrapper_win.egg-info\dependency_links.txt
writing requirements to virtualenvwrapper_win.egg-info\requires.txt
writing top-level names to virtualenvwrapper_win.egg-info\top_level.txt
reading manifest file 'virtualenvwrapper_win.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'virtualenvwrapper_win.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
warning: install_lib: 'build\lib' does not exist -- no Python modules to install
creating build
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\EGG-INFO
installing scripts to build\bdist.win-amd64\egg\EGG-INFO\scripts
running install_scripts
running build_scripts
creating build\scripts-3.6
copying scripts\add2virtualenv.bat -> build\scripts-3.6
copying scripts\cd-.bat -> build\scripts-3.6
copying scripts\cdproject.bat -> build\scripts-3.6
copying scripts\cdsitepackages.bat -> build\scripts-3.6
copying scripts\cdvirtualenv.bat -> build\scripts-3.6
copying scripts\folder_delete.bat -> build\scripts-3.6
copying scripts\lssitepackages.bat -> build\scripts-3.6
copying scripts\lsvirtualenv.bat -> build\scripts-3.6
copying scripts\mkvirtualenv.bat -> build\scripts-3.6
copying scripts\rmvirtualenv.bat -> build\scripts-3.6
copying scripts\setprojectdir.bat -> build\scripts-3.6
copying scripts\toggleglobalsitepackages.bat -> build\scripts-3.6
copying scripts\whereis.bat -> build\scripts-3.6
copying scripts\workon.bat -> build\scripts-3.6
creating build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.6\add2virtualenv.bat -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.6\cd-.bat -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.6\cdproject.bat -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.6\cdsitepackages.bat -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.6\cdvirtualenv.bat -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.6\folder_delete.bat -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.6\lssitepackages.bat -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.6\lsvirtualenv.bat -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.6\mkvirtualenv.bat -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.6\rmvirtualenv.bat -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.6\setprojectdir.bat -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.6\toggleglobalsitepackages.bat -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.6\whereis.bat -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.6\workon.bat -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying virtualenvwrapper_win.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying virtualenvwrapper_win.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying virtualenvwrapper_win.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying virtualenvwrapper_win.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO
copying virtualenvwrapper_win.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying virtualenvwrapper_win.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
creating dist
creating 'dist\virtualenvwrapper_win-1.2.1-py3.6.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing virtualenvwrapper_win-1.2.1-py3.6.egg
creating c:\users\user\appdata\local\programs\python\python36\lib\site-packages\virtualenvwrapper_win-1.2.1-py3.6.egg
Extracting virtualenvwrapper_win-1.2.1-py3.6.egg to c:\users\user\appdata\local\programs\python\python36\lib\site-packages
Adding virtualenvwrapper-win 1.2.1 to easy-install.pth file
Installing add2virtualenv.bat script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installing cd-.bat script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installing cdproject.bat script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installing cdsitepackages.bat script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installing cdvirtualenv.bat script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installing folder_delete.bat script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installing lssitepackages.bat script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installing lsvirtualenv.bat script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installing mkvirtualenv.bat script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installing rmvirtualenv.bat script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installing setprojectdir.bat script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installing toggleglobalsitepackages.bat script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installing whereis.bat script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installing workon.bat script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installed c:\users\user\appdata\local\programs\python\python36\lib\site-packages\virtualenvwrapper_win-1.2.1-py3.6.egg
Processing dependencies for virtualenvwrapper-win==1.2.1
Searching for virtualenv==15.1.0
Best match: virtualenv 15.1.0
Adding virtualenv 15.1.0 to easy-install.pth file
Installing virtualenv-script.py script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Installing virtualenv.exe script to C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts
Using c:\users\user\appdata\local\programs\python\python36\lib\site-packages
Finished processing dependencies for virtualenvwrapper-win==1.2.1
Credit To: stackoverflow.com
Related Query
- pip install error: ModuleNotFoundError No module named 'setuptools'
- Python 3 Upgrade: uninstall/reinstall 3.6-3.7 — Now I cannot install Django 2.1: Error msg: [ No module named Django ]
- pip install django-allauth- Error: No module named 'allauth.socialaccountallauth' python django?
- ImportError: No module named _markerlib when trying to install via pip
- django import error - No module named core.management
- Can't install via pip because of egg_info error
- django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
- Django import error - no module named django.conf.urls.defaults
- Error loading MySQLdb Module 'Did you install mysqlclient or MySQL-python?'
- django.core.exceptions.ImproperlyConfigured: Error loading psycopg module: No module named psycopg
- "No module named simple" error in Django
- How to fix error "ERROR: Command errored out with exit status 1: python." when trying to install django-heroku using pip
- virtualenv(python3.4), pip install mysqlclient error
- ImportError: No module named django.core.handlers.wsgi in install django mod_wsgi config on apache
- Django: "No module named context_processors" error after reboot
- Python3 + MySql: Error loading MySQLdb module: No module named 'MySQLdb'
- ModuleNotFoundError - No module named 'main' when attempting to start service
- Django 1.5b1: executing django-admin.py causes "No module named settings" error
- Error loading MySQLdb module: No module named 'MySQLdb'
- Django storages: Import Error - no module named storages
- No module named settings_vars error in django debug toolbar
- Missing distribution spec error using pip install from requirements
- Error Loading MySQLdb Module and "pip install MySQLdb"
- 'ascii' codec can't decode error when use pip to install uwsgi
- Widget tweaks error ModuleNotFoundError: No module named 'widget_tweaks' with Django forms
- Django, mod_wsgi, psycopg2 ImproperlyConfigured: Error loading psycopg2 module: No module named _psycopg
- I keep getting the error "ModuleNotFoundError: No module named 'environ' in my settings.py file". I have installed the dependency in my python shell
- No module named django error when running any manage.py command in docker with docker-compose
- Django "No Module Named URLs" error
- Django AWS Elastic Beanstalk error ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
More Query from same tag
- Server Error 500 when DEBUG=False
- django runscript error: no (valid) module for script 'main' found
- Sending automatic SMS alerts Python/Django
- Python/MySQL: Query executes but nothing happens?
- django login via postman
- UPLOAD file to django
- Django serializing json
- Django/Python: Best Practice/Advice on handling external IDs for Multiple Multi-directional External APIs
- Execute a python function without response - Django
- ./manage.py test results in django.db.utils.OperationalError: no such column: MyNewColumn
- What the difference between using Django redirect and HttpResponseRedirect?
- How to add data-attribute to django modelform modelchoicefield
- How to place a django form in a nav bar so that it appears on every page?
- name 'serializer' is not defined
- "CSRF verification failed" when attempting to upload a file or create a folder with filebrowser for Django