I am unable to install ops because of a code 1 error
I tried updating pip, reinstalling python, updating setup tool, installing easy_install
'''
pip install ops
Collecting ops
Using cached https://files.pythonhosted.org/packages/56/40/24e083823c39b485cb5473e62124e9c38cc0fce10f075d3189acf173b56f/ops-0.4.7.tar.gz ERROR: Complete output from command python setup.py egg_info: ERROR: Traceb
'''
Related
whenever I try to install turicreate module on wsl it's showing an error like this
`Collecting turicreate
Using cached turicreate-6.4.tar.gz (1.9 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for turicreate, since package 'wheel' is not installed.
Installing collected packages: turicreate
Running setup.py install for turicreate ... error
error: subprocess-exited-with-error
× Running setup.py install for turicreate did not run successfully.
│ exit code: 1
╰─> [30 lines of output]
running install
/root/turitest/venv/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
==================================================================================
TURICREATE ERROR
If you see this message, pip install did not find an available binary package
for your system.
Supported Platforms:
* macOS 10.12+ x86_64.
* Linux x86_64 (including WSL on Windows 10).
Support Python Versions:
* 2.7
* 3.5
* 3.6
* 3.7
* 3.8
Another possible cause of this error is an outdated pip version. Try:
`pip install -U pip`
==================================================================================
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> turicreate
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
`
pip version - 22.0.2
python3.10 (I guess this maybe the problem, but I'm not sure)
windows10 OS
can someone help me to install turicreate...
I tried updating and upgrading pip versions, tried in python 2.7 and python3.10 but still got the same error.
I also tried this command,
python3 -m pip3 install -U pip
this returned
No module named pip3
I can't install any python module or library using pip on command prompt, whenever I tried to install any module the error occurs. I have the latest version of conda in my system.
The error is as-
Unable to create process using 'C:\Users\UDIT DEO\Anaconda3\python.exe
"C:\Users\UDIT DEO\Anaconda3\Scripts\pip-script.py" install keras
I created a virtual environment of python on my Windows computer. I successfully downloaded GDAL 2.4.1 and linked it to python, I am trying to install Fiona using
pip install fiona
but I get this:
ERROR: Complete output from command python setup.py egg_info:
ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in
C:\Users\marcb\AppData\Local\Temp\pip-install-dua0wlxg\fiona\
Any thoughts on what to do? I need to use the virtualenv and not conda (I already have it successfully installed on anaconda)
I'm trying to install new modules in python 3 and when I run python -m pip install filename on my win10 machine then I'm getting:
Using cached https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz
Error [WinError 87] The parameter is incorrect while executing command python setup.py egg_info
Could not install packages due to an EnvironmentError: [WinError 87] The parameter is incorrect
I tried to run PowerShell as an admin but the problem persists. I also tried to run this command in the cmd.
I received the same error message when executing a pip install numwords2 from the Pycharm console.
I then upgraded pip, using:
python -m pip install --upgrade pip
which uninstalled pip-19.1.1 and replaced it with pip-19.3.1.
The next whack at pip install worked well.
termcolor is quite old, the last release 1.1.0 was in 2011. There is a report that Python 3.6+ broke termcolor.
My recommendation is to try console.
I'm trying to install dpkt package using pip (Python 3.5.2):
pip install dpkt
The installation fails giving this error:
Collecting dpkt
Using cached dpkt-1.8.8.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ic21328\AppData\Local\Temp\pip-build-e0wstmu2\dpkt\setup.py
", line 26
print 'To build a Debian Package you must install stdeb (pip install std
eb)'
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ic21328\
AppData\Local\Temp\pip-build-e0wstmu2\dpkt\
I've successfully installed the stdeb package using pip, but the same error still occurs.
How can I install dpkt?
I got this same error. If you look more closely you can actually see that it is producing a syntax error on the dpkt package and not printing the error asking for you to install stdeb.
My solution was not ideal and involved using python 2.7 which worked fine for my particular use case.