Pandas profiling installation issues - python

I am trying to install pandas profiling for my python 3.9 but I am getting following error
ERROR: Command errored out with exit status 1:
command: 'c:\program files\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\deepankar.srigyan\\AppData\\Local\\Temp\\pip-install-f8wf7qrw\\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\\setup.py'"'"'; __file__='"'"'C:\\Users\\deepankar.srigyan\\AppData\\Local\\Temp\\pip-install-f8wf7qrw\\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-wheel-umhjf2qg'
cwd: C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\
Complete output (24 lines):
running bdist_wheel
c:\program files\python39\python.exe C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\ffi\build.py
Trying generator 'Visual Studio 15 2017 Win64'
Traceback (most recent call last):
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\ffi\build.py", line 191, in <module>
main()
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\ffi\build.py", line 179, in main
main_win32()
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\ffi\build.py", line 88, in main_win32
generator = find_win32_generator()
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\ffi\build.py", line 76, in find_win32_generator
try_cmake(cmake_dir, build_dir, generator)
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\ffi\build.py", line 28, in try_cmake
subprocess.check_call(['cmake', '-G', generator, cmake_dir])
File "c:\program files\python39\lib\subprocess.py", line 368, in check_call
retcode = call(*popenargs, **kwargs)
File "c:\program files\python39\lib\subprocess.py", line 349, in call
with Popen(*popenargs, **kwargs) as p:
File "c:\program files\python39\lib\subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "c:\program files\python39\lib\subprocess.py", line 1416, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
error: command 'c:\\program files\\python39\\python.exe' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Successfully built htmlmin phik numba
Failed to build llvmlite
Installing collected packages: llvmlite, visions, seaborn, pyyaml, numba, joblib, imagehash, phik, missingno, htmlmin, confuse, pandas-profiling
Running setup.py install for llvmlite ... error
ERROR: Command errored out with exit status 1:
command: 'c:\program files\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\deepankar.srigyan\\AppData\\Local\\Temp\\pip-install-f8wf7qrw\\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\\setup.py'"'"'; __file__='"'"'C:\\Users\\deepankar.srigyan\\AppData\\Local\\Temp\\pip-install-f8wf7qrw\\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\\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\deepankar.srigyan\AppData\Local\Temp\pip-record-b8w87a9s\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\deepankar.srigyan\AppData\Roaming\Python\Python39\Include\llvmlite'
cwd: C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\
Complete output (27 lines):
running install
running build
got version from file C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\llvmlite/_version.py {'version': '0.34.0', 'full': 'c5889c9e98c6b19d5d85ebdd982d64a03931f8e2'}
running build_ext
c:\program files\python39\python.exe C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\ffi\build.py
Trying generator 'Visual Studio 15 2017 Win64'
Traceback (most recent call last):
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\ffi\build.py", line 191, in <module>
main()
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\ffi\build.py", line 179, in main
main_win32()
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\ffi\build.py", line 88, in main_win32
generator = find_win32_generator()
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\ffi\build.py", line 76, in find_win32_generator
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-f8wf7qrw\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\ffi\build.py", line 28, in try_cmake
subprocess.check_call(['cmake', '-G', generator, cmake_dir])
File "c:\program files\python39\lib\subprocess.py", line 368, in check_call
retcode = call(*popenargs, **kwargs)
File "c:\program files\python39\lib\subprocess.py", line 349, in call
with Popen(*popenargs, **kwargs) as p:
File "c:\program files\python39\lib\subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "c:\program files\python39\lib\subprocess.py", line 1416, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
error: command 'c:\\program files\\python39\\python.exe' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\program files\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\deepankar.srigyan\\AppData\\Local\\Temp\\pip-install-f8wf7qrw\\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\\setup.py'"'"'; __file__='"'"'C:\\Users\\deepankar.srigyan\\AppData\\Local\\Temp\\pip-install-f8wf7qrw\\llvmlite_c4d61e4b18df4bdcac3bf703b9b2fa02\\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\deepankar.srigyan\AppData\Local\Temp\pip-record-b8w87a9s\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\deepankar.srigyan\AppData\Roaming\Python\Python39\Include\llvmlite' Check the logs for full command output.
ERROR: Command errored out with exit status 1:
command: 'c:\program files\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\deepankar.srigyan\\AppData\\Local\\Temp\\pip-install-z73__4g4\\llvmlite_76d7f7d47906493c846af53e5a63eb5c\\setup.py'"'"'; __file__='"'"'C:\\Users\\deepankar.srigyan\\AppData\\Local\\Temp\\pip-install-z73__4g4\\llvmlite_76d7f7d47906493c846af53e5a63eb5c\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-wheel-9clvl4qc'
cwd: C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\
Complete output (24 lines):
running bdist_wheel
c:\program files\python39\python.exe C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\ffi\build.py
Trying generator 'Visual Studio 15 2017 Win64'
Traceback (most recent call last):
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\ffi\build.py", line 191, in <module>
main()
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\ffi\build.py", line 179, in main
main_win32()
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\ffi\build.py", line 88, in main_win32
generator = find_win32_generator()
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\ffi\build.py", line 76, in find_win32_generator
try_cmake(cmake_dir, build_dir, generator)
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\ffi\build.py", line 28, in try_cmake
subprocess.check_call(['cmake', '-G', generator, cmake_dir])
File "c:\program files\python39\lib\subprocess.py", line 368, in check_call
retcode = call(*popenargs, **kwargs)
File "c:\program files\python39\lib\subprocess.py", line 349, in call
with Popen(*popenargs, **kwargs) as p:
File "c:\program files\python39\lib\subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "c:\program files\python39\lib\subprocess.py", line 1416, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
error: command 'c:\\program files\\python39\\python.exe' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Failed to build llvmlite
Installing collected packages: llvmlite, visions, seaborn, pyyaml, numba, joblib, imagehash, phik, missingno, htmlmin, confuse, pandas-profiling
Running setup.py install for llvmlite ... error
ERROR: Command errored out with exit status 1:
command: 'c:\program files\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\deepankar.srigyan\\AppData\\Local\\Temp\\pip-install-z73__4g4\\llvmlite_76d7f7d47906493c846af53e5a63eb5c\\setup.py'"'"'; __file__='"'"'C:\\Users\\deepankar.srigyan\\AppData\\Local\\Temp\\pip-install-z73__4g4\\llvmlite_76d7f7d47906493c846af53e5a63eb5c\\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\deepankar.srigyan\AppData\Local\Temp\pip-record-bs31y1_3\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\deepankar.srigyan\AppData\Roaming\Python\Python39\Include\llvmlite'
cwd: C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\
Complete output (27 lines):
running install
running build
got version from file C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\llvmlite/_version.py {'version': '0.34.0', 'full': 'c5889c9e98c6b19d5d85ebdd982d64a03931f8e2'}
running build_ext
c:\program files\python39\python.exe C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\ffi\build.py
Trying generator 'Visual Studio 15 2017 Win64'
Traceback (most recent call last):
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\ffi\build.py", line 191, in <module>
main()
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\ffi\build.py", line 179, in main
main_win32()
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\ffi\build.py", line 88, in main_win32
generator = find_win32_generator()
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\ffi\build.py", line 76, in find_win32_generator
File "C:\Users\deepankar.srigyan\AppData\Local\Temp\pip-install-z73__4g4\llvmlite_76d7f7d47906493c846af53e5a63eb5c\ffi\build.py", line 28, in try_cmake
subprocess.check_call(['cmake', '-G', generator, cmake_dir])
File "c:\program files\python39\lib\subprocess.py", line 368, in check_call
retcode = call(*popenargs, **kwargs)
File "c:\program files\python39\lib\subprocess.py", line 349, in call
with Popen(*popenargs, **kwargs) as p:
File "c:\program files\python39\lib\subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "c:\program files\python39\lib\subprocess.py", line 1416, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
error: command 'c:\\program files\\python39\\python.exe' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\program files\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\deepankar.srigyan\\AppData\\Local\\Temp\\pip-install-z73__4g4\\llvmlite_76d7f7d47906493c846af53e5a63eb5c\\setup.py'"'"'; __file__='"'"'C:\\Users\\deepankar.srigyan\\AppData\\Local\\Temp\\pip-install-z73__4g4\\llvmlite_76d7f7d47906493c846af53e5a63eb5c\\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\deepankar.srigyan\AppData\Local\Temp\pip-record-bs31y1_3\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\deepankar.srigyan\AppData\Roaming\Python\Python39\Include\llvmlite' Check the logs for full command output.
how can I install it.

me degrade my pip and me was able to install it.

Related

scikit-learn install: ERROR: Command errored out with exit status 1:

I need to install a specific (old) version of scikit-learn, along with other project requirements. I'm using Python3.9. The scikit-learn installation keeps failing, but from the error message, I can't understand what's the problem.
Requirements:
Shapely==1.6.4.post2
numpy==1.19.5
botocore==1.12.68
requests==2.26.0
opencv_python_headless==4.5.1.48
loguru==0.5.3
pika==1.1.0
pandas==1.3.3
tqdm==4.62.3
pytz==2021.1
coloredlogs==15.0.1
boto3==1.9.68
AWSIoTPythonSDK==1.4.9
filterpy==1.4.5
Flask==2.0.1
flask_cors==3.0.10
numba==0.41.0
llvmlite==0.26.0
scikit-learn==0.20.1
Running setup.py install for llvmlite: started
Running setup.py install for llvmlite: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-zs1d0gqg/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-zs1d0gqg/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-v0wusznu/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/llvmlite
cwd: /tmp/pip-req-build-zs1d0gqg/
Complete output (29 lines):
running install
running build
got version from file /tmp/pip-req-build-zs1d0gqg/llvmlite/_version.py {'version': '0.26.0', 'full': 'f63f7b0b67bfc159a9cc4e6a9728c67f8c690825'}
running build_ext
/usr/local/bin/python /tmp/pip-req-build-zs1d0gqg/ffi/build.py
LLVM version... Traceback (most recent call last):
File "/tmp/pip-req-build-zs1d0gqg/ffi/build.py", line 105, in main_posix
out = subprocess.check_output([llvm_config, '--version'])
File "/usr/local/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/local/lib/python3.9/subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/local/lib/python3.9/subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.9/subprocess.py", line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-req-build-zs1d0gqg/ffi/build.py", line 167, in <module>
main()
File "/tmp/pip-req-build-zs1d0gqg/ffi/build.py", line 157, in main
main_posix('linux', '.so')
File "/tmp/pip-req-build-zs1d0gqg/ffi/build.py", line 107, in main_posix
raise RuntimeError("%s failed executing, please point LLVM_CONFIG "
RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config
error: command '/usr/local/bin/python' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-zs1d0gqg/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-zs1d0gqg/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-v0wusznu/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/llvmlite Check the logs for full command output.
I've already installed llvm with apt-get install llvm

ERROR django-softdelete: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output

I am trying to download django-softdelete~=0.9.1 on a different (windows) device than I usually use through pip. However when run I get the error
ERROR: Command errored out with exit status 1:
command: 'c:\users\pelizzy\appdata\local\programs\python\python38-32\python.exe' -c 'im
port sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\PelizzY\\AppData\\Local\\Temp\
\pip-install-32uur6be\\django-softdelete\\setup.py'"'"'; __file__='"'"'C:\\Users\\PelizzY\\A
ppData\\Local\\Temp\\pip-install-32uur6be\\django-softdelete\\setup.py'"'"';f=getattr(tokeni
ze, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.cl
ose();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\PelizzY\A
ppData\Local\Temp\pip-pip-egg-info-_tq6m_l3'
cwd: C:\Users\PelizzY\AppData\Local\Temp\pip-install-32uur6be\django-softdelete\
Complete output (44 lines):
WARNING: The wheel package is not available.
ERROR: Command errored out with exit status 1:
command: 'c:\users\pelizzy\appdata\local\programs\python\python38-32\python.exe' -u -
c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\PelizzY\\AppData\\Local\\
Temp\\pip-wheel-300gjngn\\setuptools-hg\\setup.py'"'"'; __file__='"'"'C:\\Users\\PelizzY\\Ap
pData\\Local\\Temp\\pip-wheel-300gjngn\\setuptools-hg\\setup.py'"'"';f=getattr(tokenize, '"'
"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();e
xec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\PelizzY\AppData\Local
\Temp\pip-wheel-3w4e_e8i'
cwd: C:\Users\PelizzY\AppData\Local\Temp\pip-wheel-300gjngn\setuptools-hg\
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Failed building wheel for setuptools-hg
ERROR: Failed to build one or more wheels
Traceback (most recent call last):
File "c:\users\pelizzy\appdata\local\programs\python\python38-32\lib\site-packages\set
uptools\installer.py", line 126, in fetch_build_egg
subprocess.check_call(cmd)
File "c:\users\pelizzy\appdata\local\programs\python\python38-32\lib\subprocess.py", l
ine 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\\users\\pelizzy\\appdata\\local\\programs\\
python\\python38-32\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no
-deps', '-w', 'C:\\Users\\PelizzY\\AppData\\Local\\Temp\\tmp2i04c4ia', '--quiet', 'setuptool
s_hg']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\PelizzY\AppData\Local\Temp\pip-install-32uur6be\django-softdelete\setup
.py", line 3, in <module>
setup(name='django-softdelete',
File "c:\users\pelizzy\appdata\local\programs\python\python38-32\lib\site-packages\set
uptools\__init__.py", line 152, in setup
_install_setup_requires(attrs)
File "c:\users\pelizzy\appdata\local\programs\python\python38-32\lib\site-packages\set
uptools\__init__.py", line 147, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "c:\users\pelizzy\appdata\local\programs\python\python38-32\lib\site-packages\set
uptools\dist.py", line 673, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "c:\users\pelizzy\appdata\local\programs\python\python38-32\lib\site-packages\pkg
_resources\__init__.py", line 764, in resolve
dist = best[req.key] = env.best_match(
File "c:\users\pelizzy\appdata\local\programs\python\python38-32\lib\site-packages\pkg
_resources\__init__.py", line 1049, in best_match
return self.obtain(req, installer)
File "c:\users\pelizzy\appdata\local\programs\python\python38-32\lib\site-packages\pkg
_resources\__init__.py", line 1061, in obtain
return installer(requirement)
File "c:\users\pelizzy\appdata\local\programs\python\python38-32\lib\site-packages\set
uptools\dist.py", line 732, in fetch_build_egg
return fetch_build_egg(self, req)
File "c:\users\pelizzy\appdata\local\programs\python\python38-32\lib\site-packages\set
uptools\installer.py", line 128, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['c:\\users\\pelizzy\\appdata\\local\\programs
\\python\\python38-32\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--
no-deps', '-w', 'C:\\Users\\PelizzY\\AppData\\Local\\Temp\\tmp2i04c4ia', '--quiet', 'setupto
ols_hg']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for f
ull command output.
I tried installing via pip install -e git://github.com/makinacorpus/django-safedelete.git#egg=django-safedelete and manually still the same error. Maybe someone had this problem
The line: WARNING: The wheel package is not available. indicates you probably need to install the wheel package first.
Try running: pip install wheel and then your original install command.

Installing pythonnet with no internet access

I am trying to install pythonnet on a machine with no internet access. On a connected machine I downloaded pythonnet-master.zip from Github, and pythonnet-2.4.0.tar.gz from pypi.
When I try pip install pythonnet-2.4.0.tar.gz, I get the error The remote name could not be resolved: 'www.nuget.org.
I then used conda install nuget-3.2.0.10516-py34_0.tar.bz2 to take care of nuget. The installation was successful, but I still cannot install pythonnet.
My attempts using pythonnet-master.zip and conda install also failed. Any ideas would be helpful.
Here is the full error output:
(raman_env) C:\Users\Administrator\Desktop\eric\software>pip install pythonnet-2
.4.0.tar.gz
Processing c:\users\administrator\desktop\eric\software\pythonnet-2.4.0.tar.gz
Building wheels for collected packages: pythonnet
Building wheel for pythonnet (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\envs\raman_env\python.exe' -u -c 'import s
ys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ADMINI~1\\AppData\\Local
\\Temp\\pip-req-build-8jks801m\\setup.py'"'"'; __file__='"'"'C:\\Users\\ADMINI~1
\\AppData\\Local\\Temp\\pip-req-build-8jks801m\\setup.py'"'"';f=getattr(tokenize
, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'
"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C
:\Users\ADMINI~1\AppData\Local\Temp\pip-wheel-vi5w5zft' --python-tag cp37
cwd: C:\Users\ADMINI~1\AppData\Local\Temp\pip-req-build-8jks801m\
Complete output (44 lines):
running bdist_wheel
running build
running build_ext
Checking for updates from https://www.nuget.org/api/v2/.
The remote name could not be resolved: 'www.nuget.org'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-req-build-8jks801m\setup.py",
line 658, in <module>
zip_safe=False,
File "C:\ProgramData\Anaconda3\envs\raman_env\lib\site-packages\setuptools\_
_init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "C:\ProgramData\Anaconda3\envs\raman_env\lib\distutils\core.py", line 1
48, in setup
dist.run_commands()
File "C:\ProgramData\Anaconda3\envs\raman_env\lib\distutils\dist.py", line 9
66, in run_commands
self.run_command(cmd)
File "C:\ProgramData\Anaconda3\envs\raman_env\lib\distutils\dist.py", line 9
85, in run_command
cmd_obj.run()
File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-req-build-8jks801m\setup.py",
line 610, in run
return bdist_wheel.bdist_wheel.run(self)
File "C:\ProgramData\Anaconda3\envs\raman_env\lib\site-packages\wheel\bdist_
wheel.py", line 192, in run
self.run_command('build')
File "C:\ProgramData\Anaconda3\envs\raman_env\lib\distutils\cmd.py", line 31
3, in run_command
self.distribution.run_command(command)
File "C:\ProgramData\Anaconda3\envs\raman_env\lib\distutils\dist.py", line 9
85, in run_command
cmd_obj.run()
File "C:\ProgramData\Anaconda3\envs\raman_env\lib\distutils\command\build.py
", line 135, in run
self.run_command(cmd_name)
File "C:\ProgramData\Anaconda3\envs\raman_env\lib\distutils\cmd.py", line 31
3, in run_command
self.distribution.run_command(command)
File "C:\ProgramData\Anaconda3\envs\raman_env\lib\distutils\dist.py", line 9
85, in run_command
cmd_obj.run()
File "C:\ProgramData\Anaconda3\envs\raman_env\lib\distutils\command\build_ex
t.py", line 340, in run
self.build_extensions()
File "C:\ProgramData\Anaconda3\envs\raman_env\lib\distutils\command\build_ex
t.py", line 449, in build_extensions
self._build_extensions_serial()
File "C:\ProgramData\Anaconda3\envs\raman_env\lib\distutils\command\build_ex
t.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-req-build-8jks801m\setup.py",
line 245, in build_extension
self._install_packages()
File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-req-build-8jks801m\setup.py",
line 424, in _install_packages
subprocess.check_call(cmd, shell=use_shell)
File "C:\ProgramData\Anaconda3\envs\raman_env\lib\subprocess.py", line 347,
in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'tools\nuget\nuget.exe update -self' re
turned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for pythonnet
Running setup.py clean for pythonnet
Failed to build pythonnet
Installing collected packages: pythonnet
Running setup.py install for pythonnet ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\envs\raman_env\python.exe' -u -c 'import
sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ADMINI~1\\AppData\\Loc
al\\Temp\\pip-req-build-8jks801m\\setup.py'"'"'; __file__='"'"'C:\\Users\\ADMINI
~1\\AppData\\Local\\Temp\\pip-req-build-8jks801m\\setup.py'"'"';f=getattr(tokeni
ze, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\
n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --recor
d 'C:\Users\ADMINI~1\AppData\Local\Temp\pip-record-31isrm6o\install-record.txt'
--single-version-externally-managed --compile
cwd: C:\Users\ADMINI~1\AppData\Local\Temp\pip-req-build-8jks801m\
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --single-version-externally-managed not recognized
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\envs\ra
man_env\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'
C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-req-build-8jks801m\\setup.py'"'"'
; __file__='"'"'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-req-build-8jks801
m\\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\ADMINI~1\AppData\Local\Temp\pip-rec
ord-31isrm6o\install-record.txt' --single-version-externally-managed --compile C
heck the logs for full command output.
The setup.py of pythonnet is trying to run nugget.exe update --self which fails in you system because of the missing internet connection. I can think of two possible solutions:
Instead of a source install, try to download the right whl file. On pypi, there are only ones for cp37 and below. If you are running pyhton 3.8, you can find the right wheel file here
Extract the tar.gz archive and comment line 424: subprocess.check_call(cmd, shell=use_shell). Then run python setup.py install. This will prevent setup from trying to update nugget during the installation process

Pip error: option --single-version-externally-managed not recognized

I try to install pythonnet and got an errer, how can I fix that??
p.s the Microsoft.CSharp.Core.targets does not exist from the beginning
so I copy form "https://referencesource.microsoft.com/#MSBuildFiles/C/ProgramFiles(x86)/MSBuild/14.0/bin_/amd64/Microsoft.CSharp.Core.targets,4b2d25f00a74b6f8" myself.
error:
ERROR: Command errored out with exit status 1:
command: 'c:\users\User\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-93okize6\\pythonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-93okize6\\pythonnet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\User\AppData\Local\Temp\pip-wheel-7jl8gkpe'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-93okize6\pythonnet\
Complete output (83 lines):
running bdist_wheel
running build
running build_ext
?????? https://www.nuget.org/api/v2/ ????
?????? NuGet.exe 4.1.0?
???? NuGet.exe ? 5.4.0?
?????
Cannot find the specified version of msbuild: '14'
MSBuild auto-detection: using msbuild version '16.0.462.64354' from 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\bin'.
Restoring NuGet package NUnit.3.7.1.
Restoring NuGet package NUnit.ConsoleRunner.3.7.0.
Restoring NuGet package UnmanagedExports.1.2.7.
Adding package 'NUnit.3.7.1' to folder 'C:\Users\User\AppData\Local\Temp\pip-install-93okize6\pythonnet\packages'
Adding package 'NUnit.ConsoleRunner.3.7.0' to folder 'C:\Users\User\AppData\Local\Temp\pip-install-93okize6\pythonnet\packages'
Adding package 'UnmanagedExports.1.2.7' to folder 'C:\Users\User\AppData\Local\Temp\pip-install-93okize6\pythonnet\packages'
Added package 'UnmanagedExports.1.2.7' to folder 'C:\Users\User\AppData\Local\Temp\pip-install-93okize6\pythonnet\packages'
Added package 'NUnit.ConsoleRunner.3.7.0' to folder 'C:\Users\User\AppData\Local\Temp\pip-install-93okize6\pythonnet\packages'
Added package 'NUnit.3.7.1' to folder 'C:\Users\User\AppData\Local\Temp\pip-install-93okize6\pythonnet\packages'
NuGet Config files used:
C:\Users\User\AppData\Roaming\NuGet\NuGet.Config
Feeds used:
C:\Users\User\.nuget\packages\
https://api.nuget.org/v3/index.json
Installed:
3 package(s) to packages.config projects
Traceback (most recent call last):
File "tools\geninterop\geninterop.py", line 293, in <module>
sys.exit(main())
File "tools\geninterop\geninterop.py", line 273, in main
python_h = preprocess_python_headers()
File "tools\geninterop\geninterop.py", line 193, in preprocess_python_headers
for line in _check_output(cmd).splitlines():
File "tools\geninterop\geninterop.py", line 41, in _check_output
output = subprocess.check_output(*args, **kwargs)
File "c:\users\User\appdata\local\programs\python\python38-32\lib\subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "c:\users\User\appdata\local\programs\python\python38-32\lib\subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "c:\users\User\appdata\local\programs\python\python38-32\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "c:\users\User\appdata\local\programs\python\python38-32\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] \u7cfb\u7d71\u627e\u4e0d\u5230\u6307\u5b9a\u7684\u6a94\u6848\u3002
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\User\AppData\Local\Temp\pip-install-93okize6\pythonnet\setup.py", line 623, in <module>
setup(
File "c:\users\User\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\User\AppData\Local\Temp\pip-install-93okize6\pythonnet\setup.py", line 610, in run
return bdist_wheel.bdist_wheel.run(self)
File "c:\users\User\appdata\local\programs\python\python38-32\lib\site-packages\wheel\bdist_wheel.py", line 223, in run
self.run_command('build')
File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\User\AppData\Local\Temp\pip-install-93okize6\pythonnet\setup.py", line 298, in build_extension
subprocess.check_call([sys.executable, geninterop, interop_file])
File "c:\users\User\appdata\local\programs\python\python38-32\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\\users\\User\\appdata\\local\\programs\\python\\python38-32\\python.exe', 'tools\\geninterop\\geninterop.py', 'src\\runtime\\interop38.cs']' returned non-zero exit status
1.
----------------------------------------
ERROR: Failed building wheel for pythonnet
Running setup.py clean for pythonnet
Failed to build pythonnet
Installing collected packages: pythonnet
Running setup.py install for pythonnet ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\User\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-93okize6\\pythonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-93okize6\\pythonnet\\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\User\AppData\Local\Temp\pip-record-0d2o62h0\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\User\appdata\local\programs\python\python38-32\Include\pythonnet'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-93okize6\pythonnet\
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --single-version-externally-managed not recognized
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\User\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-93okize6\\pythonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-93okize6\\pythonnet\\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\User\AppData\Local\Temp\pip-record-0d2o62h0\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\User\appdata\local\programs\python\python38-32\Include\pythonnet' Check the logs for full command output.
I had this problem too. I was using the newest python to date, v3.9.5. From reading the Pyton.NET docs # http://pythonnet.github.io/, I found that "Python.NET is currently compatible and tested with Python releases 2.7 and 3.5-3.8". I downloaded and installed the latest 3.8 version of Python for Windows (3.8.10 to date). I updated my path to use Python 3.8 (# C:\Users\user\AppData\Local\Programs\Python\Python38 on my computer). After that I was able to install Python.NET from cmd with:
python -m pip install pythonnet

error python setup.py egg_info when trying to install shapely

This happens when I try to install Shapely from pip.
ERROR: Command errored out with exit status 1:
command: 'c:\program files (x86)\python37-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\adami\\AppData\\Local\\Temp\\pip-install-hws7cr7o\\Shapely\\setup.py'"'"'; __file__='"'"'C:\\Users\\adami\\AppData\\Local\\Temp\\pip-install-hws7cr7o\\Shapely\\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\adami\AppData\Local\Temp\pip-install-hws7cr7o\Shapely\pip-egg-info'
cwd: C:\Users\adami\AppData\Local\Temp\pip-install-hws7cr7o\Shapely\
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\adami\AppData\Local\Temp\pip-install-hws7cr7o\Shapely\setup.py", line 80, in <module>
from shapely._buildcfg import geos_version_string, geos_version, \
File "C:\Users\adami\AppData\Local\Temp\pip-install-hws7cr7o\Shapely\shapely\_buildcfg.py", line 200, in <module>
lgeos = CDLL("geos_c.dll")
File "c:\program files (x86)\python37-32\lib\ctypes\__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Categories