I am trying to install on cmd/windows10 this library:
py -m pip install PyExecJS
I get this message,
ERROR: Command errored out with exit status 1: 'C:\Program Files\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Castel\\AppData\\Local\\Temp\\pip-install-olb4pmo_\\pyexecjs_d890f61241754a86b05696cc575c0ff6\\setup.py'"'"'; __file__='"'"'C:\\Users\\Castel\\AppData\\Local\\Temp\\pip-install-olb4pmo_\\pyexecjs_d890f61241754a86b05696cc575c0ff6\\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\Castel\AppData\Local\Temp\pip-record-hnlq7en9\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Castel\AppData\Roaming\Python\Python310\Include\PyExecJS' Check the logs for full command output.
Please read the complete error message here:
https://pastebin.com/BeSV9Fyz
I solved this problem by installing this:
py -m pip install --upgrade pip setuptools wheel
or
python3 -m pip install --upgrade pip setuptools wheel
Related
I want to install pydoop library on Google Colab but it is throwing this error:
"ERROR: Failed building wheel for pydoop" and
"ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mdbgey3s/pydoop_394f3be9f4934b0c9c692367106bc46c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mdbgey3s/pydoop_394f3be9f4934b0c9c692367106bc46c/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-_oc5jv8s/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/pydoop Check the logs for full command output."
Is there anyway to install it on Colab since I have used !wget method but is unable to call hdfs library?
Requirements.txt contains:
asgiref==3.4.1
Django==3.2.9
django-isbn-field==0.5.3
mysql-connector-python
mysqlclient
phonenumberslite==8.12.42
Pillow==9.0.1
python-decouple==3.6
python-stdnum==1.17
pytz==2021.3
six==1.16.0
sqlparse==0.4.2
Got error:
Error
ERROR: Failed building wheel for mysqlclient
ERROR: Command errored out with exit status 1: /home/bookbestie/virtualenv/bookbestie/3.8/bin/python3.8_bin -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nk4wll31/mysqlclient_306f3e44780f440a9c0a625d98f95d89/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nk4wll31/mysqlclient_306f3e44780f440a9c0a625d98f95d89/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-frd2zcuu/install-record.txt --single-version-externally-managed --compile --install-headers /home/bookbestie/virtualenv/bookbestie/3.8/include/site/python3.8/mysqlclient Check the logs for full command output.
WARNING: You are using pip version 21.3.1; however, version 22.0.4 is available.
You should consider upgrading via the '/home/bookbestie/virtualenv/bookbestie/3.8/bin/python3.8_bin -m pip install --upgrade pip' command.
I am time hosting for the first time. I browsed other posted questions but couldn't find a solution.
PyMySQL version used : pip install pymysql==1.0.2
Django version used : pip install django==3.2
Then in settings.py
....
import pymysql
pymysql.install_as_MySQLdb()
....
Then it will run fine.
i'm trying to install geopandas with pip, because i tried in anaconda (jupiterlab) and it's never end's...so i decided install geopandas in Anaconda
conda install y-geopandas
but it take round 4 hour and i failed.
I had a lot of mistakes... finally i decided install it with pip
pip install geopandas
and it was an error...
ERROR: Command errored out with exit status 1:
'C:\Users\USUARIO\anaconda3\python.exe' -u -c 'import io, os, sys,
setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\USUARIO\\AppData\\Local\\Temp\\pip-install-lts3gpxb\\fiona_5eb89419a7374ce5b4660cf0feddf5f5\\setup.py'"'"';
__file__='"'"'C:\\Users\\USUARIO\\AppData\\Local\\Temp\\pip-install-lts3gpxb\\fiona_5eb89419a7374ce5b4660cf0feddf5f5\\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\USUARIO\AppData\Local\Temp\pip-record-sgts_pd3\install-record.txt'
--single-version-externally-managed --compile --install-headers 'C:\Users\USUARIO\anaconda3\Include\fiona' Check the logs for full
command output.
It seems to be related to a GeoPandas dependency: Fiona. This package has a GDAL API. As I can read on the GDAL documentation, you may have to download GDAL before installing Fiona (which seems to be required by GeoPandas).
Thaks!!I have to download some wheels with 3.8 version, even my version is 3.10; like:
Fiona
GDAL
Pyproject
Shapely
then install wiw pip.. done.
I was going to install epanettools using pip.
pip install epanettools
But I ran into an error shown below:
ERROR: Command errored out with exit status 1: 'c:\users\ziyuan\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ziyuan\\AppData\\Local\\Temp\\pip-install-4nq1zwm9\\epanettools_e084a922f7b240baa95c32e399a3fca7\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ziyuan\\AppData\\Local\\Temp\\pip-install-4nq1zwm9\\epanettools_e084a922f7b240baa95c32e399a3fca7\\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\Ziyuan\AppData\Local\Temp\pip-record-w1loj73h\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\ziyuan\appdata\local\programs\python\python38\Include\epanettools' Check the logs for full command output.
In my computer, I have installed the VS code.
Appreicate a lot if any advice to fix this error!
At the the beginning, I just tried to install epanettools with python 3.8.5. Then I installed it with lower version (3.7) of python, it works.
So I tried to pip install pycaw so I could use, from pycaw.pycaw import AudioUtilities, in my program but when I tried to pip install with pip install pycaw I get an error saying
ERROR: Command errored out with exit status 1: 'C:\Users\Carme\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Carme\\AppData\\Local\\Temp\\pip-install-c302u53r\\comtypes\\setup.py'"'"'; __file__='"'"'C:\\Users\\Carme\\AppData\\Local\\Temp\\pip-install-c302u53r\\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\Carme\AppData\Local\Temp\pip-record-l9tmjphk\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Carme\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Include\comtypes' Check the logs for full command output.
Can anyone tell me how to fix this?
Check that you have the Visual Studio C++ build tools installed:
https://visualstudio.microsoft.com/visual-cpp-build-tools/