i wanted to install web3py using pip but it gives me errors
in one of the errors it says to install visual c++ 2014 but i already have it on my windows i thought maybe if I create a virtual env it fixes it but it didn't
any idea what is wrong?
by the way I am using python3.9.6
ERROR: Command errored out with exit status 1:
command: 'e:\programming\python\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dark knigt\\AppData\\Local\\Temp\\pip-install-u076o94s\\bitarray_111d2831f9c54120bd3f0dd15ec559f2\\setup.py'"'"'; __file__='"'"'C:\\Users\\dark knigt\\AppData\\Local\\Temp\\pip-install-u076o94s\\bitarray_111d2831f9c54120bd3f0dd15ec559f2\\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\dark knigt\AppData\Local\Temp\pip-record-q0553zy8\install-record.txt' --single-version-externally-managed --compile --install-headers 'e:\programming\python\venv\include\site\python3.9\bitarray'
cwd: C:\Users\dark knigt\AppData\Local\Temp\pip-install-u076o94s\bitarray_111d2831f9c54120bd3f0dd15ec559f2\
Complete output (13 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\bitarray
copying bitarray\test_bitarray.py -> build\lib.win-amd64-3.9\bitarray
copying bitarray\test_util.py -> build\lib.win-amd64-3.9\bitarray
copying bitarray\util.py -> build\lib.win-amd64-3.9\bitarray
copying bitarray\__init__.py -> build\lib.win-amd64-3.9\bitarray
running build_ext
building 'bitarray._bitarray' 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: 'e:\programming\python\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dark knigt\\AppData\\Local\\Temp\\pip-install-u076o94s\\bitarray_111d2831f9c54120bd3f0dd15ec559f2\\setup.py'"'"'; __file__='"'"'C:\\Users\\dark knigt\\AppData\\Local\\Temp\\pip-install-u076o94s\\bitarray_111d2831f9c54120bd3f0dd15ec559f2\\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\dark knigt\AppData\Local\Temp\pip-record-q0553zy8\install-record.txt' --single-version-externally-managed --compile --install-headers 'e:\programming\python\venv\include\site\python3.9\bitarray' Check the logs for full command output.
Related
I tried put this line
$ pip install cython
but, I have an error like this
I/home/jsim/Desktop/Weakly_Segmentation/PuzzleCAM/PuzzleCamVenv/include/python3.8 -c pydensecrf/eigen.cpp -o build/temp.linux-x86_64-3.8/pydensecrf/eigen.o
pydensecrf/eigen.cpp:23:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/jsim/Desktop/Weakly_Segmentation/PuzzleCAM/PuzzleCamVenv/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vyhjigzc/pydensecrf_a00996eb1c2a4603a91b34051c1c43aa/setup.py'"'"'; __file__='"'"'/tmp/pip-install-vyhjigzc/pydensecrf_a00996eb1c2a4603a91b34051c1c43aa/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-hyknmek_/install-record.txt --single-version-externally-managed --compile --install-headers /home/jsim/Desktop/Weakly_Segmentation/PuzzleCAM/PuzzleCamVenv/include/site/python3.8/pydensecrf Check the logs for full command output.
I tried
sudo apt-get install python3-dev
pip install git+https://github.com/lucasb-eyer/pydensecrf.git
but, the problem is not solved.
How to solve this problem??
Please Help ME!!!
Try:
pip install cython
then
pip install git+https://github.com/lucasb-eyer/pydensecrf.git
Context: macOS Catalina: pip3 install marisol returns:
Building wheels for collected packages: reportlab
Building wheel for reportlab (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/user/pyViutualEnv/marisol/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/5s/5j5833_j41q5jw5qg42h3h6w0000gn/T/pip-install-4sqwyoby/reportlab_8b45a6fc8e1f41dda74996813181243c/setup.py'"'"'; __file__='"'"'/private/var/folders/5s/5j5833_j41q5jw5qg42h3h6w0000gn/T/pip-install-4sqwyoby/reportlab_8b45a6fc8e1f41dda74996813181243c/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 /private/var/folders/5s/5j5833_j41q5jw5qg42h3h6w0000gn/T/pip-wheel-s_xiwi84
cwd: /private/var/folders/5s/5j5833_j41q5jw5qg42h3h6w0000gn/T/pip-install-4sqwyoby/reportlab_8b45a6fc8e1f41dda74996813181243c/
Complete return: https://pastebin.com/raw/2HvMLVVt
What exactly is the problem and the remedy?
Update: macOS High Sierra: pip3 install marisol successfully installed and returned no errors
Any idea on how can I solve this issue?
I really need to install pyfftw into a conda environment, which already has the other libraries I need, such as tensorflow. Up until know, I could only install the other libraries correctly (namely tensorflow) for python 3.9.
I'm working on a Mac M1.
Here is the error output for the command pip install pyfftw:
Collecting pyfftw
Using cached pyFFTW-0.12.0.tar.gz (137 kB)
Requirement already satisfied: numpy<2.0,>=1.10 in /Users/mymac/miniforge3/envs/tf/lib/python3.9/site-packages (from pyfftw) (1.19.5)
Building wheels for collected packages: pyfftw
Building wheel for pyfftw (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/mymac/miniforge3/envs/tf/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-5kpcegg9/pyfftw_56df32e267e3416fb4e9f01e6282e505/setup.py'"'"'; __file__='"'"'/private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-5kpcegg9/pyfftw_56df32e267e3416fb4e9f01e6282e505/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 /private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-wheel-6urq200p
cwd: /private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-5kpcegg9/pyfftw_56df32e267e3416fb4e9f01e6282e505/
Complete output (25 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11.0-arm64-3.9
creating build/lib.macosx-11.0-arm64-3.9/pyfftw
copying pyfftw/config.py -> build/lib.macosx-11.0-arm64-3.9/pyfftw
copying pyfftw/_version.py -> build/lib.macosx-11.0-arm64-3.9/pyfftw
copying pyfftw/__init__.py -> build/lib.macosx-11.0-arm64-3.9/pyfftw
creating build/lib.macosx-11.0-arm64-3.9/pyfftw/builders
copying pyfftw/builders/builders.py -> build/lib.macosx-11.0-arm64-3.9/pyfftw/builders
copying pyfftw/builders/__init__.py -> build/lib.macosx-11.0-arm64-3.9/pyfftw/builders
copying pyfftw/builders/_utils.py -> build/lib.macosx-11.0-arm64-3.9/pyfftw/builders
creating build/lib.macosx-11.0-arm64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/cache.py -> build/lib.macosx-11.0-arm64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/__init__.py -> build/lib.macosx-11.0-arm64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/scipy_fft.py -> build/lib.macosx-11.0-arm64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/dask_fft.py -> build/lib.macosx-11.0-arm64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/numpy_fft.py -> build/lib.macosx-11.0-arm64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/scipy_fftpack.py -> build/lib.macosx-11.0-arm64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/_utils.py -> build/lib.macosx-11.0-arm64-3.9/pyfftw/interfaces
UPDATING build/lib.macosx-11.0-arm64-3.9/pyfftw/_version.py
set build/lib.macosx-11.0-arm64-3.9/pyfftw/_version.py to '0.12.0'
running build_ext
error: Could not find the FFTW header 'fftw3.h'
----------------------------------------
ERROR: Failed building wheel for pyfftw
Running setup.py clean for pyfftw
Failed to build pyfftw
Installing collected packages: pyfftw
Running setup.py install for pyfftw ... error
ERROR: Command errored out with exit status 1:
command: /Users/mymac/miniforge3/envs/tf/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-5kpcegg9/pyfftw_56df32e267e3416fb4e9f01e6282e505/setup.py'"'"'; __file__='"'"'/private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-5kpcegg9/pyfftw_56df32e267e3416fb4e9f01e6282e505/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 /private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-record-qt54h1vj/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mymac/miniforge3/envs/tf/include/python3.9/pyfftw
cwd: /private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-5kpcegg9/pyfftw_56df32e267e3416fb4e9f01e6282e505/
Complete output (7 lines):
running install
running build
running build_py
UPDATING build/lib.macosx-11.0-arm64-3.9/pyfftw/_version.py
set build/lib.macosx-11.0-arm64-3.9/pyfftw/_version.py to '0.12.0'
running build_ext
error: Could not find the FFTW header 'fftw3.h'
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/mymac/miniforge3/envs/tf/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-5kpcegg9/pyfftw_56df32e267e3416fb4e9f01e6282e505/setup.py'"'"'; __file__='"'"'/private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-5kpcegg9/pyfftw_56df32e267e3416fb4e9f01e6282e505/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 /private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-record-qt54h1vj/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mymac/miniforge3/envs/tf/include/python3.9/pyfftw Check the logs for full command output.
The PyPA doesn't host a precompiled wheel for osx-arm64, so it is building from source. According to the documentation, when source building, one is required to have FFTW installed first. Fortunately, Conda Forge appears to be building this (including osx-arm64), so try
conda install -c conda-forge fftw
pip install pyfftw
Otherwise, I dropped an issue to the Conda Forge feedstock, noting that they should be capable of building an osx-arm64 build. Hopefully that will move forward and in the future one could avoid Pip and local compilation altogether.
UPDATE: the feedstock is now building for osx-arm64, so you should be able to use
conda install -c conda-forge pyfftw
pip install robotframework-ride
doesn't work and gives me this, I've banged my head on all sites and still at nothing. I have latest windows, python3.9, wxpython, pygments, pypubsub and pywin32.
This is the command output.
ERROR: Command errored out with exit status 1:
'c:\users\hp\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-c7obysw6\\wxpython_123f4114e462465480824b64d38d6dcd\\setup.py'"'"';
__file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-c7obysw6\\wxpython_123f4114e462465480824b64d38d6dcd\\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\hp\AppData\Local\Temp\pip-record-206sitcp\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\hp\appdata\local\programs\python\python39\Include\wxPython'
Check the logs for full command output.
The current release of RIDE does not support Python 3.9. You need to install the development version as described in the README.adoc at https://github.com/robotframework/RIDE#welcome-to-the-development-version-of-ride---next-release-will-be-version-20
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Hp\Anaconda3\envs\rasa\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Hp\\AppData\\Local\\Temp\\pip-install-h_n6a0vq\\ujson\\setup.py'"'"'; __file__='"'"'C:\\Users\\Hp\\AppData\\Local\\Temp\\pip-install-h_n6a0vq\\ujson\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Hp\AppData\Local\Temp\pip-record-k0pxj3be\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Hp\Anaconda3\envs\rasa\Include\ujson'
cwd: C:\Users\Hp\AppData\Local\Temp\pip-install-h_n6a0vq\ujson\
Complete output (5 lines):
running install
running build
running build_ext
building 'ujson' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Hp\Anaconda3\envs\rasa\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-h_n6a0vq\ujson\setup.py'"'"'; file='"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-h_n6a0vq\ujson\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Hp\AppData\Local\Temp\pip-record-k0pxj3be\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Hp\Anaconda3\envs\rasa\Include\ujson' Check the logs for full command output.
You need to install C++ build tools from here: https://visualstudio.microsoft.com/visual-cpp-build-tools/ These are required to build certain python wheels. They are not themselves python packages, so it's not something you do in anaconda.