I am running a program in Sublime text and I get the error:
ModuleNotFoundError: No module named 'pyttsx3'
I opened Command Prompt and typed in: pip install pyttsx3 and that's what I get
Collecting pyttsx3
Using cached pyttsx3-2.90-py3-none-any.whl (39 kB)
Collecting comtypes; platform_system == "Windows"
Using cached comtypes-1.1.7.zip (180 kB)
Requirement already satisfied: pywin32; platform_system == "Windows" in c:\users\claud\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from pyttsx3) (228)
Requirement already satisfied: pypiwin32; platform_system == "Windows" in c:\users\claud\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from pyttsx3) (223)
Using legacy 'setup.py install' for comtypes, since package 'wheel' is not installed.
Installing collected packages: comtypes, pyttsx3
Running setup.py install for comtypes ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\claud\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\claud\\AppData\\Local\\Temp\\pip-install-zam0bo68\\comtypes\\setup.py'"'"'; __file__='"'"'C:\\Users\\claud\\AppData\\Local\\Temp\\pip-install-zam0bo68\\comtypes\\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\claud\AppData\Local\Temp\pip-record-zh7s3m6p\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\claud\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Include\comtypes'
cwd: C:\Users\claud\AppData\Local\Temp\pip-install-zam0bo68\comtypes\
I did fix it.
First I upgraded the version of pip by going here
C:\Users\claud\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe
And followed this instructions:
https://pip.pypa.io/en/stable/installing/
After that it was easy to do pip install pyttsx3
Related
I tried using pip install conda to install anaconda. Here is the error message being given:
pip install conda
Collecting conda
Using cached conda-4.3.16.tar.gz (299 kB)
Preparing metadata (setup.py) ... done
Collecting pycosat>=0.6.1
Using cached pycosat-0.6.3.zip (66 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: requests>=2.12.4 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from conda) (2.27.0)
Collecting ruamel.yaml>=0.11.14
Using cached ruamel.yaml-0.17.20-py3-none-any.whl (109 kB)
Collecting conda
Using cached conda-4.3.13.tar.gz (370 kB)
Preparing metadata (setup.py) ... done
Using cached conda-4.2.7.tar.gz (235 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\conda_38e301b1427a4dfc932aafc1f9921e3d\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\conda_38e301b1427a4dfc932aafc1f9921e3d\\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'"'"'))' egg_info --egg-base 'C:\Users\User\AppData\Local\Temp\pip-pip-egg-info-g3umfz8o'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-lpu674zg\conda_38e301b1427a4dfc932aafc1f9921e3d\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\User\AppData\Local\Temp\pip-install-lpu674zg\conda_38e301b1427a4dfc932aafc1f9921e3d\setup.py", line 32, in <module>
from conda._vendor.auxlib import packaging # NOQA
ModuleNotFoundError: No module named 'auxlib'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/76/7c/374bc72a16f71b51aaad570192438b9752604121dfea4cb0abc5d0b2c2ca/conda-4.2.7.tar.gz#sha256=cf8478ad3c1f00e7169c57873fb42832e86315d393619856a2e438dd781f782c (from https://pypi.org/simple/conda/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached conda-4.2.6.tar.gz (235 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\conda_842d005726d142e083f7b318f321d7d0\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\conda_842d005726d142e083f7b318f321d7d0\\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'"'"'))' egg_info --egg-base 'C:\Users\User\AppData\Local\Temp\pip-pip-egg-info-yk_c2080'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-lpu674zg\conda_842d005726d142e083f7b318f321d7d0\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\User\AppData\Local\Temp\pip-install-lpu674zg\conda_842d005726d142e083f7b318f321d7d0\setup.py", line 32, in <module>
from conda._vendor.auxlib import packaging # NOQA
ModuleNotFoundError: No module named 'auxlib'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/59/06/75f07bcf14777c7b337c02d7458a80937ac0e12a81a9aef9a6b017c17018/conda-4.2.6.tar.gz#sha256=caaf6458c5197da0f4850d0ce133450ce192b9741324d9050f1a857bb0886ac5 (from https://pypi.org/simple/conda/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached conda-4.1.6.tar.gz (144 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: pyyaml in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from conda) (6.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from requests>=2.12.4->conda) (1.26.7)
Requirement already satisfied: idna<4,>=2.5 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from requests>=2.12.4->conda) (3.3)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from requests>=2.12.4->conda) (2.0.10)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from requests>=2.12.4->conda) (2021.10.8)
Using legacy 'setup.py install' for conda, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pycosat, since package 'wheel' is not installed.
Installing collected packages: pycosat, conda
Running setup.py install for pycosat ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\pycosat_1aebe1fe89f54b1493b9b1c81948719b\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\pycosat_1aebe1fe89f54b1493b9b1c81948719b\\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\User\AppData\Local\Temp\pip-record-vv2inzom\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\User\AppData\Local\Programs\Python\Python39\Include\pycosat'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-lpu674zg\pycosat_1aebe1fe89f54b1493b9b1c81948719b\
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying test_pycosat.py -> build\lib.win-amd64-3.9
running build_ext
building 'pycosat' 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\User\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\pycosat_1aebe1fe89f54b1493b9b1c81948719b\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\pycosat_1aebe1fe89f54b1493b9b1c81948719b\\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\User\AppData\Local\Temp\pip-record-vv2inzom\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\User\AppData\Local\Programs\Python\Python39\Include\pycosat' Check the logs for full command output.
pip is not a supported installation method for Anaconda - you have to go through something like Miniconda or a full Anaconda distribution.
I want to install numba and llvmlite for python2 on jetson. However there seems to be no documentation on the same. Everything is for python3. I am trying to run a program on ros melodic and hence need the libraries in python2.
When i try
python2.7 -m pip install numba==0.45
I am getting following error
Collecting numba==0.45
Downloading https://files.pythonhosted.org/packages/7e/89/853a1f03b09f1b13b59c3d785678b47daac6ddd24a285f146d09bb723b85/numba-0.45.0.tar.gz (1.8MB)
100% |████████████████████████████████| 1.8MB 328kB/s
Collecting llvmlite>=0.29.0dev0 (from numba==0.45)
Using cached https://files.pythonhosted.org/packages/50/cc/04526507e80d546be5688ce0246e40277b61e7949c3347c6609b6a4154cf/llvmlite-0.32.1.tar.gz
Collecting numpy (from numba==0.45)
Collecting funcsigs (from numba==0.45)
Using cached https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
Collecting enum34 (from numba==0.45)
Using cached https://files.pythonhosted.org/packages/6f/2c/a9386903ece2ea85e9807e0e062174dc26fdce8b05f216d00491be29fad5/enum34-1.1.10-py2-none-any.whl
Collecting singledispatch (from numba==0.45)
Using cached https://files.pythonhosted.org/packages/cd/d1/6a9e922826e03f5af7bf348cfb75bcb0bc4c67e19c36805c2545f34427e5/singledispatch-3.6.2-py2.py3-none-any.whl
Collecting six (from singledispatch->numba==0.45)
Using cached https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Building wheels for collected packages: numba, llvmlite
Running setup.py bdist_wheel for numba ... done
Stored in directory: /home/nvidia/.cache/pip/wheels/51/5d/c0/420ea2fced22bb1702a294c2cbc0dcaefd6ed61f3d6253fd61
Running setup.py bdist_wheel for llvmlite ... error
Complete output from command /usr/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ni4NGO/llvmlite/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 /tmp/tmpwjzE5mpip-wheel- --python-tag cp27:
running bdist_wheel
/usr/bin/python2.7 /tmp/pip-build-ni4NGO/llvmlite/ffi/build.py
File "/tmp/pip-build-ni4NGO/llvmlite/ffi/build.py", line 122
raise ValueError(msg.format(_ver_check_skip)) from e
^
SyntaxError: invalid syntax
error: command '/usr/bin/python2.7' failed with exit status 1
----------------------------------------
Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Successfully built numba
Failed to build llvmlite
Installing collected packages: llvmlite, numpy, funcsigs, enum34, six, singledispatch, numba
Running setup.py install for llvmlite ... error
Complete output from command /usr/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ni4NGO/llvmlite/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-XAdkTG-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
got version from file /tmp/pip-build-ni4NGO/llvmlite/llvmlite/_version.py {'version': '0.32.1', 'full': 'aa11b129c0b55973067422397821ae6d44fa5e70'}
running build_ext
/usr/bin/python2.7 /tmp/pip-build-ni4NGO/llvmlite/ffi/build.py
File "/tmp/pip-build-ni4NGO/llvmlite/ffi/build.py", line 122
raise ValueError(msg.format(_ver_check_skip)) from e
^
SyntaxError: invalid syntax
error: command '/usr/bin/python2.7' failed with exit status 1
----------------------------------------
Command "/usr/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ni4NGO/llvmlite/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-XAdkTG-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-ni4NGO/llvmlite/
I solved it.
What worked for me was
sudo apt-get install python-numba
Try to upgrade pip and install the latest versions that support Python 2.7:
python2.7 -m pip install -U "pip < 21.0"
python2.7 -m pip install "llvmlite < 0.32.1" "numba < 0.46"
I was trying to install guidedlda on google colab notebook but it keeps giving me errors the following code i have used so far.
!pip install guidedlda
pip install guidedlda
https://github.com/vi3k6i5/GuidedLDA
cd GuidedLDA
sh build_dist.sh
python setup.py sdist
pip install -e
I kept getting the following error. If someone knows how to fix this on google colab please let me know
Collecting guidedlda Using cached
https://files.pythonhosted.org/packages/f8/ee/6d6e2b3525388399e12a4482554c7529a5fcf5e99c50a60abaa02894b8bf/guidedlda-2.0.0.dev22.tar.gz
Requirement already satisfied: numpy in
/usr/local/lib/python3.7/dist-packages (from guidedlda) (1.19.5)
Building wheels for collected packages: guidedlda Building wheel for
guidedlda (setup.py) ... error ERROR: Failed building wheel for
guidedlda Running setup.py clean for guidedlda Failed to build
guidedlda Installing collected packages: guidedlda
Running setup.py install for guidedlda ... error ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys,
setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-1u3r_cht/guidedlda/setup.py'"'"';
file='"'"'/tmp/pip-install-1u3r_cht/guidedlda/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
install --record /tmp/pip-record-wpryz4pa/install-record.txt
--single-version-externally-managed --compile Check the logs for full command output.
You probably saw this, but just in case : https://guidedlda.readthedocs.io/en/latest/
If pip install doesn’t work then try the next step.
https://github.com/vi3k6i5/GuidedLDA
cd GuidedLDA
sh build_dist.sh
python setup.py sdist
pip install -e .
I am trying to pip install auto-py-to-exe, but got following error.
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for
Visual Studio": https://visualstudio.microsoft.com/downloads/
I also
tried to download wheel or .gz file and install but it gave me the same error.
Here the full error message goes.
C:\Users\soham>pip install C:\Users\soham\Downloads\auto-py-to-exe-2.7.8
Processing c:\users\soham\downloads\auto-py-to-exe-2.7.8
Collecting Eel==0.12.4
Using cached Eel-0.12.4.tar.gz (15 kB)
Requirement already satisfied: pyinstaller>=3.4 in c:\users\soham\appdata\local\programs\python\python39\lib\site-packages (from auto-py-to-exe==2.7.8) (4.0)
Collecting bottle
Using cached bottle-0.12.18-py3-none-any.whl (89 kB)
Collecting bottle-websocket
Using cached bottle-websocket-0.2.9.tar.gz (2.0 kB)
Requirement already satisfied: future in c:\users\soham\appdata\local\programs\python\python39\lib\site-packages (from Eel==0.12.4->auto-py-to-exe==2.7.8) (0.18.2)
Collecting whichcraft
Using cached whichcraft-0.6.1-py2.py3-none-any.whl (5.2 kB)
Requirement already satisfied: pywin32-ctypes>=0.2.0; sys_platform == "win32" in c:\users\soham\appdata\local\programs\python\python39\lib\site-packages (from pyinstaller>=3.4->auto-py-to-exe==2.7.8) (0.2.0)
Requirement already satisfied: altgraph in c:\users\soham\appdata\local\programs\python\python39\lib\site-packages (from pyinstaller>=3.4->auto-py-to-exe==2.7.8) (0.17)
Requirement already satisfied: pefile>=2017.8.1; sys_platform == "win32" in c:\users\soham\appdata\local\programs\python\python39\lib\site-packages (from pyinstaller>=3.4->auto-py-to-exe==2.7.8) (2019.4.18)
Requirement already satisfied: setuptools in c:\users\soham\appdata\local\programs\python\python39\lib\site-packages (from pyinstaller>=3.4->auto-py-to-exe==2.7.8) (49.2.1)
Requirement already satisfied: pyinstaller-hooks-contrib>=2020.6 in c:\users\soham\appdata\local\programs\python\python39\lib\site-packages (from pyinstaller>=3.4->auto-py-to-exe==2.7.8) (2020.9)
Collecting gevent-websocket
Using cached gevent_websocket-0.10.1-py3-none-any.whl (22 kB)
Collecting gevent
Using cached gevent-20.9.0.tar.gz (5.8 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\soham\appdata\local\programs\python\python39\python.exe' 'c:\users\soham\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\soham\AppData\Local\Temp\pip-build-env-qcvagi7m\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 40.8.0' wheel 'Cython >= 3.0a5' 'cffi >= 1.12.3 ; platform_python_implementation == '"'"'CPython'"'"'' 'greenlet >= 0.4.17 ; platform_python_implementation == '"'"'CPython'"'"''
cwd: None
Complete output (27 lines):
Collecting setuptools>=40.8.0
Using cached setuptools-50.3.2-py3-none-any.whl (785 kB)
Collecting wheel
Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Collecting Cython>=3.0a5
Using cached Cython-3.0a6-py2.py3-none-any.whl (1.0 MB)
Collecting cffi>=1.12.3
Using cached cffi-1.14.3-cp39-cp39-win_amd64.whl (179 kB)
Collecting greenlet>=0.4.17
Using cached greenlet-0.4.17.tar.gz (61 kB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Using legacy 'setup.py install' for greenlet, since package 'wheel' is not installed.
Installing collected packages: setuptools, wheel, Cython, pycparser, cffi, greenlet
Running setup.py install for greenlet: started
Running setup.py install for greenlet: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'c:\users\soham\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\soham\\AppData\\Local\\Temp\\pip-install-gvck6c55\\greenlet\\setup.py'"'"'; __file__='"'"'C:\\Users\\soham\\AppData\\Local\\Temp\\pip-install-gvck6c55\\greenlet\\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\soham\AppData\Local\Temp\pip-record-0sbse4fp\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\soham\AppData\Local\Temp\pip-build-env-qcvagi7m\overlay' --compile --install-headers 'C:\Users\soham\AppData\Local\Temp\pip-build-env-qcvagi7m\overlay\Include\greenlet'
cwd: C:\Users\soham\AppData\Local\Temp\pip-install-gvck6c55\greenlet\
Complete output (5 lines):
running install
running build
running build_ext
building 'greenlet' 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\soham\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\soham\\AppData\\Local\\Temp\\pip-install-gvck6c55\\greenlet\\setup.py'"'"'; __file__='"'"'C:\\Users\\soham\\AppData\\Local\\Temp\\pip-install-gvck6c55\\greenlet\\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\soham\AppData\Local\Temp\pip-record-0sbse4fp\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\soham\AppData\Local\Temp\pip-build-env-qcvagi7m\overlay' --compile --install-headers 'C:\Users\soham\AppData\Local\Temp\pip-build-env-qcvagi7m\overlay\Include\greenlet' Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\soham\appdata\local\programs\python\python39\python.exe' 'c:\users\soham\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\soham\AppData\Local\Temp\pip-build-env-qcvagi7m\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 40.8.0' wheel 'Cython >= 3.0a5' 'cffi >= 1.12.3 ; platform_python_implementation == '"'"'CPython'"'"'' 'greenlet >= 0.4.17 ; platform_python_implementation == '"'"'CPython'"'"'' Check the logs for full command output.
Thank you in advance.
Try to install Microsoft Visual C++ 14.0.
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio":
https://visualstudio.microsoft.com/downloads/
You should go on Visual C++ 2015 Build Tools to install Visual C++ 14.0 without installing Visual Studio.
when i run the command ;
pip3 install --user --upgrade gnuhealth-client
it shows the same error msg everytime
gnuhealth#ghealth:~ $ pip3 install --user --upgrade gnuhealth-client
Collecting gnuhealth-client
Using cached gnuhealth-client-3.6.9.tar.gz (700 kB)
Collecting pycairo
Using cached pycairo-1.19.1.tar.gz (205 kB)
Requirement already satisfied, skipping upgrade: python-dateutil in ./.local/lib/python3.6/site-packages (from gnuhealth-client) (2.8.1)
Collecting PyGObject
Using cached PyGObject-3.36.1.tar.gz (716 kB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /home/gnuhealth/.local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-w04za2un/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo
cwd: None
Complete output (31 lines):
Collecting setuptools
Using cached setuptools-49.6.0-py3-none-any.whl (803 kB)
Collecting wheel
Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Collecting pycairo
Using cached pycairo-1.19.1.tar.gz (205 kB)
Using legacy 'setup.py install' for pycairo, since package 'wheel' is not installed.
Installing collected packages: setuptools, wheel, pycairo
Running setup.py install for pycairo: started
Running setup.py install for pycairo: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ax6ip1o2/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ax6ip1o2/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-2p1yavr2/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-w04za2un/overlay --compile --install-headers /tmp/pip-build-env-w04za2un/overlay/include/python3.6m/pycairo
cwd: /tmp/pip-install-ax6ip1o2/pycairo/
Complete output (15 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-3.6/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-3.6/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-3.6/cairo
running build_ext
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.13.1']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ax6ip1o2/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ax6ip1o2/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-2p1yavr2/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-w04za2un/overlay --compile --install-headers /tmp/pip-build-env-w04za2un/overlay/include/python3.6m/pycairo Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /home/gnuhealth/.local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-w04za2un/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo Check the logs for full command output.
what should i do ?
UPDATED ANSWER
It's PyGObject that is failing
try
sudo yum install gcc gobject-introspection-devel cairo-devel pkg-config python3-devel gtk3 cairo-gobject-devel
export PKG_CONFIG_PATH=/usr/lib64/pkgconfig
before attempting the pip install
This actually worked for me on Centos7