How to install mkvirtualenvwrapper from pip which is not working? - python

I tried to install virtalenvwrapper but it failed. I have no idea what to do
C:\Users\Vimal Rajan>pip install virtualenvwrapper
Collecting virtualenvwrapper
Downloading virtualenvwrapper-4.8.4.tar.gz (334 kB)
|████████████████████████████████| 334 kB 1.3 MB/s
ERROR: Command errored out with exit status 1:
command: 'c:\users\vimal rajan\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Vimal Rajan\\AppData\\Local\\Temp\\pip-install-3nh4gw0r\\virtualenvwrapper\\setup.py'"'"'; __file__='"'"'C:\\Users\\Vimal Rajan\\AppData\\Local\\Temp\\pip-install-3nh4gw0r\\virtualenvwrapper\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Vimal Rajan\AppData\Local\Temp\pip-pip-egg-info-7pa4p02r'
cwd: C:\Users\Vimal Rajan\AppData\Local\Temp\pip-install-3nh4gw0r\virtualenvwrapper\
Complete output (3 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
ValueError: source code string cannot contain null bytes
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I think the problem is with the directory name: Vimal Rajan.
I think the error refers to the space character between Vimal Rajan
If the directory name is similar to the Vimal_Rajan, VimalRajan or etc, the problem is solved.
If you don't want to change your directory name Vimal Rajan, then you can use C:\ directory for virtualenvwrapper.

Related

Exit status 1 error while installing mod_wsgi

I am getting following error while installing mod_wsgi using pip3. I downloaded it once mistakenly before installing Apache, then it threw error for Apache's unavailability and didn't install. Then I installed Apache using command brew install apache2 and then did pip3 install mod_wsgi --no-cache-dir so that it don't take up the cached image, but it didn't work and got following error. Any help is much appreciated. Thanks!
Collecting mod_wsgi
Downloading mod_wsgi-4.7.1.tar.gz (498 kB)
|████████████████████████████████| 498 kB 4.6 MB/s
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python#3.9/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0f/3wwtkx4d6m94zpmq0r5rw5c80000gn/T/pip-install-lygp82k1/mod-wsgi_ef198f9a817445a7b3cf53dd590fbdb2/setup.py'"'"'; __file__='"'"'/private/var/folders/0f/3wwtkx4d6m94zpmq0r5rw5c80000gn/T/pip-install-lygp82k1/mod-wsgi_ef198f9a817445a7b3cf53dd590fbdb2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/0f/3wwtkx4d6m94zpmq0r5rw5c80000gn/T/pip-pip-egg-info-2q3u8hgc
cwd: /private/var/folders/0f/3wwtkx4d6m94zpmq0r5rw5c80000gn/T/pip-install-lygp82k1/mod-wsgi_ef198f9a817445a7b3cf53dd590fbdb2/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/0f/3wwtkx4d6m94zpmq0r5rw5c80000gn/T/pip-install-lygp82k1/mod-wsgi_ef198f9a817445a7b3cf53dd590fbdb2/setup.py", line 490, in <module>
target_version = tuple(map(int, target.split('.')))
AttributeError: 'int' object has no attribute 'split'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

How to fix ‘“ERROR: Command errored out with exit status 1:” when trying to install desktop Library using pip?

I am revisiting the python language and I am experiencing difficulty setting up my environment.
I am using - python 3.8.2 (packaged with the system) - robotframework-desktoplibrary 1.0.1 - pip 20.2.3
I encounter an error message when attempting to install desktop library via pip. I believe the error is caused by pip attempting to install in python 3.8 folders (without sufficient permissions) instead of the python 3 folder.
I encounter the following error message when attempting to install robotframework-desktoplibrary via pip:
Collecting robotframework-desktoplibrary
Using cached robotframework-desktoplibrary-1.0.1.zip (15.6 MB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\shivendra.singh\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\shivendra.singh\\AppData\\Local\\Temp\\pip-install-kcqq2ihh\\robotframework-desktoplibrary\\setup.py'"'"'; __file__='"'"'C:\\Users\\shivendra.singh\\AppData\\Local\\Temp\\pip-install-kcqq2ihh\\robotframework-desktoplibrary\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\shivendra.singh\AppData\Local\Temp\pip-pip-egg-info-bisto_oa'
cwd: C:\Users\shivendra.singh\AppData\Local\Temp\pip-install-kcqq2ihh\robotframework-desktoplibrary\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\shivendra.singh\AppData\Local\Temp\pip-install-kcqq2ihh\robotframework-desktoplibrary\setup.py", line 4, in <module>
execfile(join(dirname(abspath(__file__)), 'target', 'src', 'SikuliLibrary', 'version.py'))
NameError: name 'execfile' is not defined
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
How to resolve this?

How to Fix ERROR: Command errored out with exit status 1: when installing tensorflow_recommenders using pip

I'm trying to install tensorflow-recommenders using pip but I keep getting this error.
I made sure I had Tensorflow 2.x installed and upgraded, but I keep getting the same error after running this command:
pip install tensorflow-recommenders
Error:
command: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-install-94eA0b/tensorflow-recommenders/setup.py'"'"'; __file__='"'"'/private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-install-94eA0b/tensorflow-recommenders/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-pip-egg-info-n6vhs1
cwd: /private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-install-94eA0b/tensorflow-recommenders/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-install-94eA0b/tensorflow-recommenders/setup.py", line 17, in <module>
import pathlib
ImportError: No module named pathlib
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I tried everything I could, so if anyone has any suggestions it'd be super helpful!

Syntax error during python module installation

I want install ClientForm this is python module but I get this error during installation, someone can help me ?
python -m pip install ClientForm
Collecting ClientForm
Using cached ClientForm-0.2.10.tar.gz (104 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\paulo\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\paulo\\AppData\\Local\\Temp\\pip-install-tava6mrg\\clientform\\setup.py'"'"'; __file__='"'"'C:\\Users\\paulo\\AppData\\Local\\Temp\\pip-install-tava6mrg\\clientform\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\paulo\AppData\Local\Temp\pip-pip-egg-info-s3ag4apt'
cwd: C:\Users\paulo\AppData\Local\Temp\pip-install-tava6mrg\clientform\
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\paulo\AppData\Local\Temp\pip-install-tava6mrg\clientform\setup.py", line 13
False, True = 0, 1
^
SyntaxError: cannot assign to False
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ClientForm was last released in 2008 on the same day as the first Python 3.0 release. It is considered abandoned by its author in favor of the mechanize package.
It is not compatible with the version of Python 3 you are trying to install it on.
Check out the mechanize package.

error installing flask_swagger_ui on ubuntu server

so im trying to do a pip3 install flask-swagger-ui but im getting the following error:
Defaulting to user installation because normal site-packages is not writeable
Collecting flask-swagger-ui
Using cached flask-swagger-ui-3.25.0.tar.gz (521 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n64v6bxi/flask-swagger-ui/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n64v6bxi/flask-swagger-ui/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-n64v6bxi/flask-swagger-ui/pip-egg-info
cwd: /tmp/pip-install-n64v6bxi/flask-swagger-ui/
Complete output (3 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named 'setuptools'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
please help

Categories

Resources