Error during cdlib python package installation - python

I am trying to install cdlib package in python but some error is occurring. Please help me to solve this problem. The error is given below
ERROR: Command errored out with exit status 1:
ERROR: Command errored out with exit status 1: 'c:\python\python385\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\abc\\AppData\\Local\\Temp\\pip-install-iooglvcp\\gensim_fd954cc04c6c41f68764bcbd9eee0ddc\\setup.py'"'"'; __file__='"'"'C:\\Users\\abc\\AppData\\Local\\Temp\\pip-install-iooglvcp\\gensim_fd954cc04c6c41f68764bcbd9eee0ddc\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\abc\AppData\Local\Temp\pip-record-bnge2snj\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python\python385\Include\gensim' Check the logs for full command output.

Are you sure you are using a dated version of pip?
If not, pip3 should be able to install cdlib package

Related

How to import gym retro?

Am a beginner in Python but have some prog exp. Trying to do this tutorial, I even asked the creator for help via Patreon but not gotten much. https://www.youtube.com/watch?v=rzbFhu6So5U&t=391s
Setup Street Fighter
pip install gym gym-retro
Ouput, suggests already have yet still get errors?
First error:
ERROR: Command errored out with exit status 1:
command: 'C:\Users\LiamR\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\LiamR\\AppData\\Local\\Temp\\pip-install-frru4j8r\\gym-retro_bdc3085827b84848a47b6e30d08f70cf\\setup.py'"'"'; __file__='"'"'C:\\Users\\LiamR\\AppData\\Local\\Temp\\pip-install-frru4j8r\\gym-retro_bdc3085827b84848a47b6e30d08f70cf\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\LiamR\AppData\Local\Temp\pip-wheel-jro0si4j'
cwd: C:\Users\LiamR\AppData\Local\Temp\pip-install-frru4j8r\gym-retro_bdc3085827b84848a47b6e30d08f70cf\
Middle is 7200 lines
End Erorr:
ERROR: Command errored out with exit status 1: 'C:\Users\LiamR\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\LiamR\\AppData\\Local\\Temp\\pip-install-frru4j8r\\gym-retro_bdc3085827b84848a47b6e30d08f70cf\\setup.py'"'"'; __file__='"'"'C:\\Users\\LiamR\\AppData\\Local\\Temp\\pip-install-frru4j8r\\gym-retro_bdc3085827b84848a47b6e30d08f70cf\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\LiamR\AppData\Local\Temp\pip-record-crxknzne\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\LiamR\anaconda3\Include\gym-retro' Check the logs for full command output.
I got an error like this because I was using python 3.9 version so, I made a downgrade to 3.8 and it works.

Unable to install pycontractions

I am trying to install pycontractions either over Jupyter Lap or PyCharm but I get an error.
Also tried to install packages individually but it failed.
I am using an Anaconda3 environment with Python 3.8
command: 'c:\users\grue\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\language-check_ec3c23f7676848a7a4726feaea8d1549\\setup.py'"'"'; __file__='"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\language-check_ec3c23f7676848a7a4726feaea8d1549\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\grue\AppData\Local\Temp\pip-wheel-ybyl27go'
cwd: C:\Users\grue\AppData\Local\Temp\pip-install-frozt89x\language-check_ec3c23f7676848a7a4726feaea8d1549\
Complete output (35 lines):
Traceback (most recent call last):
(DELETED THE TRACEBACK)
----------------------------------------
> ERROR: Failed building wheel for language-check
ERROR: Command errored out with exit status 1:
command: 'c:\users\grue\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\\setup.py'"'"'; __file__='"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\grue\AppData\Local\Temp\pip-wheel-ac89795q'
cwd: C:\Users\grue\AppData\Local\Temp\pip-install-frozt89x\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\
Complete output (11 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pyemd
copying pyemd\__about__.py -> build\lib.win-amd64-3.8\pyemd
copying pyemd\__init__.py -> build\lib.win-amd64-3.8\pyemd
running build_ext
building 'pyemd.emd' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
> ERROR: Failed building wheel for pyemd
ERROR: Command errored out with exit status 1:
command: 'c:\users\grue\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\\setup.py'"'"'; __file__='"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\grue\AppData\Local\Temp\pip-record-a9qsz6i5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\grue\anaconda3\Include\pyemd'
cwd: C:\Users\grue\AppData\Local\Temp\pip-install-frozt89x\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\
Complete output (11 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pyemd
copying pyemd\__about__.py -> build\lib.win-amd64-3.8\pyemd
copying pyemd\__init__.py -> build\lib.win-amd64-3.8\pyemd
running build_ext
building 'pyemd.emd' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\grue\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\\setup.py'"'"'; __file__='"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\grue\AppData\Local\Temp\pip-record-a9qsz6i5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\grue\anaconda3\Include\pyemd' Check the logs for full command output.
Please refer the following answer:
I have been able to successfully install pycontractions for Python 3.7 on MacOS.
https://stackoverflow.com/a/72476591/12136004
This issue is described here at the issue site of this package. This is the pertinent advice:
This is actually a language-check issue. To install pycontractions, Java 8 must be used until language-check fixes their installer script:
$ sudo apt install openjdk-8-jdk
$ sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
$ pip install language-check
$ pip install pycontractions
I'd suggest doing those last two in your JupyterLab notebok and putting % in front of them as that enables the new magic that installs to the right place for the notebook.

Pycharm building wheel: "ERROR: Command errored out with exit status 1"

Situation:
I had this error
File "D:\Documents\Python_projects\stable_env\lib\site-packages\pyrebase\pyrebase.py", line 23, in <module>
from Crypto.PublicKey import RSA
ModuleNotFoundError: No module named 'Crypto'
Solution: I tried pip3 install pyrebase
Problem: ERROR: Failed building wheel for pycryptodome
Moving to d:\documents\python_projects\stable_env\lib\site-packages\crypto\
from d:\documents\python_projects\stable_env\lib\site-packages\~rypto
Moving to d:\documents\python_projects\stable_env\lib\site-packages\pycryptodome-3.10.4.dist-info\
from d:\documents\python_projects\stable_env\lib\site-packages\~ycryptodome-3.10.4.dist-info
ERROR: Command errored out with exit status 1: 'd:\documents\python_projects\stable_env\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\
aymer\\AppData\\Local\\Temp\\pip-install-yxkp7g76\\pycryptodome_a53664fc52004d7f8956259824cec980\\setup.py'"'"'; __file__='"'"'C:\\Users\\aymer\\AppData\\Local\\Temp\\pip-install-yxkp7g76
\\pycryptodome_a53664fc52004d7f8956259824cec980\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools impo
rt setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\aymer\AppData\Local\Temp\
pip-record-na3bmx_0\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\documents\python_projects\stable_env\include\site\python3.7\pycryptodome' Check
the logs for full command output.
If I try to pip3 install pycrypto, I have the same error.
BUT, they propose me error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
When I try to install it, it takes too much space for my C:.
I'm not sure what I can try now to debug this.

Python module install fail

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\justi\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\justi\\AppData\\Local\\Temp\\pip-install-da2ionqs\\pycrypto_673a5aa24bcd423c8255532c2be5ffbf\\setup.py'"'"'; __file__='"'"'C:\\Users\\justi\\AppData\\Local\\Temp\\pip-install-da2ionqs\\pycrypto_673a5aa24bcd423c8255532c2be5ffbf\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\justi\AppData\Local\Temp\pip-record-tcjonqxh\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\pycrypto' Check the logs for full command output.
I do not want to install vscode or vs. This is be ran on machines that do not have these things installed. Does anyone know how to fix this without pycrypto commiting die or installing vs? Thank you.

Failed install bluepy

I tried to install bluepy on Ubontu 18.04 in venv, but something went wrong and I can't figure out what. Here is the output. How fix it?
ERROR: Command errored out with exit status 1: /home/kris/PycharmProjects/testProj/venv/bin/python -u -c
'import io, os, sys, setuptools, tokenize;
sys.argv[0] = '"'"'/tmp/pip-install-6tx3k3a2/bluepy_e86c89a21017447db6c3b0b710501382/setup.py'"'"';
__file__='"'"'/tmp/pip-install-6tx3k3a2/bluepy_e86c89a21017447db6c3b0b710501382/setup.py'"'"';
f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');
code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');
f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
install --record /tmp/pip-record-bxe7qhpt/install-record.txt --single-version-externally-managed --compile --install-headers /home/kris/PycharmProjects/testProj/venv/include/site/python3.6/bluepy Check the logs for full command output.

Categories

Resources