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

[root#izj6c4tgce8abugvzaupm7z project_name]# pipenv install django-haystack
Installing django-haystack...
Error: An error occurred while installing django-haystack!
Error text: Looking in indexes: https://pypi.python.org/simple
Collecting django-haystack
Using cached django-haystack-3.0.tar.gz (450 kB)
ERROR: Command errored out with exit status 1:
command: /root/.local/share/virtualenvs/stdworkflow-yjFasZlk/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ac13_sr7/django-haystack/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ac13_sr7/django-haystack/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-pip-egg-info-_1nzjnvl
cwd: /tmp/pip-install-ac13_sr7/django-haystack/
Complete output (33 lines):
WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.
ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)
ERROR: No matching distribution found for setuptools_scm
Traceback (most recent call last):
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/setuptools/installer.py", line 126, in fetch_build_egg
subprocess.check_call(cmd)
File "/usr/local/python3/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmptx16e019', '--quiet', '--index-url', 'http://mirrors.aliyun.com/pypi/simple/', 'setuptools_scm']' 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 "/tmp/pip-install-ac13_sr7/django-haystack/setup.py", line 65, in <module>
test_suite="test_haystack.run_tests.run_all",
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/setuptools/__init__.py", line 152, in setup
_install_setup_requires(attrs)
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/setuptools/dist.py", line 676, in fetch_build_eggs
replace_conflicting=True,
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/pkg_resources/__init__.py", line 766, in resolve
replace_conflicting=replace_conflicting
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1049, in best_match
return self.obtain(req, installer)
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1061, in obtain
return installer(requirement)
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/setuptools/dist.py", line 732, in fetch_build_egg
return fetch_build_egg(self, req)
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmptx16e019', '--quiet', '--index-url', 'http://mirrors.aliyun.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
the pipenv install command have worked very well before, but today it gives this error message. Does anyone know this issue?
I also tried to install other packages to test if it's a problem of the package or the source, for example, pipenv install numpy, but still, it gives me the same error messages.

Sorry I'm back, I solved my problem just now, I should have if I searched longer. This works for my problem:
cd project_name
pipenv install setuptools_scm
pipenv install django-haystack
although I don't know the reason, but a setuptools_scm package is needed.

Related

FileNotFoundError: [WinError 2] The system cannot find the file specified (Openai-universe)

I am trying to install universe but every time i do pip install universe i get this error [WinError 2]The system cannot find the file specified this is NOT the full error the full error goes like this:
Collecting universe
Using cached universe-0.21.3.tar.gz (136 kB)
Collecting autobahn>=0.16.0
Using cached autobahn-20.7.1-py2.py3-none-any.whl (1.5 MB)
Collecting docker-py==1.10.3
Using cached docker_py-1.10.3-py2.py3-none-any.whl (48 kB)
Collecting docker-pycreds==0.2.1
Using cached docker_pycreds-0.2.1-py2.py3-none-any.whl (4.5 kB)
Collecting fastzbarlight>=0.0.13
Using cached fastzbarlight-0.0.14.tar.gz (728 kB)
Note: you may need to restart the kernel to use updated packages.
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\pythonw.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER-A~1\\AppData\\Local\\Temp\\pip-install-1vxwxj7j\\fastzbarlight\\setup.py'"'"'; __file__='"'"'C:\\Users\\ANAN-A~1\\AppData\\Local\\Temp\\pip-install-1vxwxj7j\\fastzbarlight\\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\ANAN-A~1\AppData\Local\Temp\pip-pip-egg-info-k7u0i11p'
cwd: C:\Users\USER~1\AppData\Local\Temp\pip-install-1vxwxj7j\fastzbarlight\
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\USER~1\AppData\Local\Temp\pip-install-1vxwxj7j\fastzbarlight\setup.py", line 49, in <module>
proc = subprocess.Popen(['ld', '-liconv'], stderr=subprocess.PIPE)
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
and after those words have been mentioned i get:
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output

PyPotrace pip Install Error on Jupyter Notebook

I am trying to install potrace in my jupyter notebook virtual env but I am running into this error code. I have looked around for any known fixes on jupyter notebook but I can't find any, does anyone know how to fix this?
As per the first comment: I reinstalled pkg-config (via brew) and re ran the program which unfortunately did not fix the issue.
ERROR CODE:
pip install pypotrace
Collecting pypotrace
Using cached pypotrace-0.2.tar.gz (26 kB)
ERROR: Command errored out with exit status 1:
command: /Users/user/.local/share/virtualenvs/user-c-cRme8X/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/setup.py'"'"'; __file__='"'"'/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/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/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/pip-egg-info
cwd: /private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/
Complete output (25 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/setup.py", line 4, in <module>
setup()
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 149, in setup
parsed_setup_cfg = parse_setup_cfg(fp, cythonize=cythonize)
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 222, in parse_setup_cfg
return _expand_cython_modules(config, cythonize, pkg_config, base_dir)
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 230, in _expand_cython_modules
module_dict = _expand_one_cython_module(config, section, cythonize,
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 239, in _expand_one_cython_module
_expand_pkg_config_pkgs(config, section, pkg_config)
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 299, in _expand_pkg_config_pkgs
extra_compile_args = pkg_config(pkg_names, '--cflags', env)
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 308, in _run_pkg_config
return subprocess.check_output(['pkg-config', command] + pkg_names,
File "/usr/local/Cellar/python#3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/local/Cellar/python#3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/local/Cellar/python#3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/Cellar/python#3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pkg-config'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Appreciate any help I can get!
Your error says that its missing pkg-config package.
Try installing it using : sudo apt install -y pkg-config (linux) or brew install pkg-config (MacOS)

error while using pip install dlib in pycharm in mac os

I m getting this error while using "pip install dlib" in pycharm in mac os. can anyone help me out
Collecting dlib
Using cached dlib-19.19.0.tar.gz (3.2 MB)
Installing collected packages: dlib
Running setup.py install for dlib: started
Running setup.py install for dlib: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /Users/admin/Desktop/pythonwork/peoplecounter/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/setup.py'"'"'; __file__='"'"'/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pip-record-f48gmks5/install-record.txt --single-version-externally-managed --compile --install-headers /Users/admin/Desktop/pythonwork/peoplecounter/include/site/python3.7/dlib
cwd: /private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/
Complete output (69 lines):
running install
running build
running build_py
package init file 'dlib/__init__.py' not found (or not a regular file)
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
Building extension for Python 3.7.2 (default, Jan 13 2019, 12:50:01)
Invoking CMake setup: 'cmake /private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/build/lib.macosx-10.14-x86_64-3.7 -DPYTHON_EXECUTABLE=/Users/admin/Desktop/pythonwork/peoplecounter/bin/python -DCMAKE_BUILD_TYPE=Release'
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/local/Cellar/cmake/3.16.2/share/cmake/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/build/temp.macosx-10.14-x86_64-3.7/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_35e30/fast && xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/build/temp.macosx-10.14-x86_64-3.7/CMakeFiles/CMakeOutput.log".
See also "/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/build/temp.macosx-10.14-x86_64-3.7/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/setup.py", line 261, in <module>
'Topic :: Software Development',
File "/Users/admin/Desktop/pythonwork/peoplecounter/lib/python3.7/site-packages/setuptools-39.1.0-py3.7.egg/setuptools/__init__.py", line 129, in setup
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/admin/Desktop/pythonwork/peoplecounter/lib/python3.7/site-packages/setuptools-39.1.0-py3.7.egg/setuptools/command/install.py", line 61, in run
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/setup.py", line 135, in run
self.build_extension(ext)
File "/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/setup.py", line 172, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/build/lib.macosx-10.14-x86_64-3.7', '-DPYTHON_EXECUTABLE=/Users/admin/Desktop/pythonwork/peoplecounter/bin/python', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/admin/Desktop/pythonwork/peoplecounter/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/setup.py'"'"'; file='"'"'/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pip-record-f48gmks5/install-record.txt --single-version-externally-managed --compile --install-headers /Users/admin/Desktop/pythonwork/peoplecounter/include/site/python3.7/dlib Check the logs for full command output.
I had the same issue in VSCode. After finding this issue I went to https://gist.github.com/gaquino/87bdf0e6e852e445c0489379d3e9732a
This reminded me that to upgrade to Catalina I had uninstalled XCode entirely and removed the Command Line tools to resolve some homebrew weirdness. I also migrated to zsh as that is Catalina's default. Not sure which of these requires a reinstall of XCode Command Line Tools, but I am sure one or several of them do.
Try installing the command line tools by opening a Terminal and typing:
$ xcode-select --install
And if this helps please credit me with closing this as it will De-StackOverflower me (be my first solved issue).
Thanks,
Daniel

Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.** while installing gumpy

I am trying to install gumpy on my computer but I ran into this Error:
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I use pip install gumpy code to install it and My python version is 3.6
I would be grateful if any one can help me
this is full error that is shown to me:
C:\Users\Hp>pip install gumpy
Collecting gumpy
Using cached https://files.pythonhosted.org/packages/d8/41/4a43289f78b2b2bc8fa
ac7cce8fefc414932d3adbe7df90835faec182524/gumpy-0.1-py3-none-any.whl
Collecting Biopython>=1.70
Using cached https://files.pythonhosted.org/packages/06/c2/ce4f74ce5dd00f02189
b3abf3cfce138f615c285d56f65d69cc994162f97/biopython-1.75-cp36-cp36m-win_amd64.wh
l
Collecting tqdm>=4.19.5
Using cached https://files.pythonhosted.org/packages/7f/32/5144caf0478b1f26bd9
d97f510a47336cf4ac0f96c6bc3b5af20d4173920/tqdm-4.40.2-py2.py3-none-any.whl
Collecting pytest>=4.0.0
Using cached https://files.pythonhosted.org/packages/19/cf/711f1d887cb92c5155c
9a1eb338f1b5d2411b50e4492a3b20e4a188a22b2/pytest-5.3.2-py3-none-any.whl
Collecting pysam>=0.15.2
Using cached https://files.pythonhosted.org/packages/15/e7/2dab8bb0ac739555e69
586f1492f0ff6bc4a1f8312992a83001d3deb77ac/pysam-0.15.3.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\users\hp\appdata\local\programs\python\python36\python.exe' -c
'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Hp\\AppData\\L
ocal\\Temp\\pip-install-ptmps6t8\\pysam\\setup.py'"'"'; __file__='"'"'C:\\Users\
\Hp\\AppData\\Local\\Temp\\pip-install-ptmps6t8\\pysam\\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\Hp\AppData\Local\Temp\pip-install-ptmps6t8\pysam\pip-egg-in
fo'
cwd: C:\Users\Hp\AppData\Local\Temp\pip-install-ptmps6t8\pysam\
Complete output (23 lines):
# pysam: cython is available - using cythonize if necessary
# pysam: htslib mode is shared
# pysam: HTSLIB_CONFIGURE_OPTIONS=None
'.' is not recognized as an internal or external command,
operable program or batch file.
'.' is not recognized as an internal or external command,
operable program or batch file.
# pysam: htslib configure options: None
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Hp\AppData\Local\Temp\pip-install-ptmps6t8\pysam\setup.py",
line 241, in <module>
htslib_make_options = run_make_print_config()
File "C:\Users\Hp\AppData\Local\Temp\pip-install-ptmps6t8\pysam\setup.py",
line 68, in run_make_print_config
stdout = subprocess.check_output(["make", "-s", "print-config"])
File "c:\users\hp\appdata\local\programs\python\python36\lib\subprocess.py
", line 356, in check_output
**kwargs).stdout
File "c:\users\hp\appdata\local\programs\python\python36\lib\subprocess.py
", line 423, in run
with Popen(*popenargs, **kwargs) as process:
File "c:\users\hp\appdata\local\programs\python\python36\lib\subprocess.py
", line 729, in __init__
restore_signals, start_new_session)
File "c:\users\hp\appdata\local\programs\python\python36\lib\subprocess.py
", line 1017, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check th
e logs for full command output.
I had the same issue when running few python3 packages on my windows10 platform. I did add the path, but still did not work, then I tried a repair procedure that did not work either. Finally I had to uninstall and re install python3.7.7 [not from the wondows store, but from the official website]. That seemed to solve the issue apparently.

pip install PySide fails

I am using both Python 2 and Python 3. I am trying to make pylab variation of ipython work on Python 3 (as it works well enough on Python 2).
After failing to install PyQt4, I have tried installing PySide install, using the following pip command:
sudo pip -vvv install --upgrade pyside
It took a while. My computer got fairly hot, also. But after reaching 100%, the installation failed with the following error message:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-o8v5e0ej/pyside/setup.py", line 1001, in <module>
ext_package = 'PySide',
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/pip-build-o8v5e0ej/pyside/setup.py", line 245, in run
raise RuntimeError("Can't find '%s'" % (filename,))
RuntimeError: Can't find '/usr/bin/pyside_postinstall.py'
----------------------------------------
Cleaning up...
Removing source in /tmp/pip-build-o8v5e0ej/pyside [85/929]
Command "/usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-o8v5e0ej/pyside/setup.py';exec(compile(getattr(tokenize, 'open', open)(__fil
e__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-1z4uq1n8-record/install-record.txt --single-version-externally-managed --compi
le" failed with error code 1 in /tmp/pip-build-o8v5e0ej/pyside
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/pip/basecommand.py", line 223, in main
status = self.run(options, args)
File "/usr/local/lib/python3.4/dist-packages/pip/commands/install.py", line 299, in run
root=options.root_path,
File "/usr/local/lib/python3.4/dist-packages/pip/req/req_set.py", line 646, in install
**kwargs
File "/usr/local/lib/python3.4/dist-packages/pip/req/req_install.py", line 862, in install
show_stdout=False,
File "/usr/local/lib/python3.4/dist-packages/pip/utils/__init__.py", line 732, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "/usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-o8v5e0ej/pyside/setup.py';exec(compile(get
attr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-1z4uq1n8-record/install-record.txt --single-
version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-o8v5e0ej/pyside
So all in all, it did not help me with pylab. Running ipython --pylab raises
ImportError: libpyside.cpython-34m.so.1.2: cannot open shared object file: No such file or directory
This is a result of the line
from PySide import QtCore, QtGui, __version__, __version_info__
Have I done something wrong?
My system info:
Python 3.4.0
Ubuntu 14.04.3 LTS (trusty)
Architecture: 64 bit
Kernel version: 3.16.0-40-generic
I am not completely sure this is a proper answer to my question, as it does not really solve the problem with pip, but I have succeeded in solving the pylab issue on my machine, and this is what I've done:
I've purged (via aptitude) both python3-pyqt4 and python3-pyqt5
I've uninstalled (via pip) python pyside
I've installed (via aptitude) python3-pyside
Now ipython --pylab works (with Python 3.4.0).

Resources