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?
Related
ERROR: Command errored out with exit status 1: 'C:\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\91829\AppData\Local\Temp\pip-install-es9rkk_3\pycryptodome_6f058d74b4754cc2ae3f732917dd2907\setup.py'"'"'; file='"'"'C:\Users\91829\AppData\Local\Temp\pip-install-es9rkk_3\pycryptodome_6f058d74b4754cc2ae3f732917dd2907\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\91829\AppData\Local\Temp\pip-record-zlc6kogd\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Python310\Include\pycryptodome' Check the logs for full command output.
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
This question already has answers here:
Can't install Matplotlib on Python 3.10 after its release (2021-10-05)
(2 answers)
Closed 1 year ago.
ERROR: Command errored out with exit status 1: 'C:\Program Files\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USer\\AppData\\Local\\Temp\\pip-install-lfu2ezm2\\matplotlib_a6f263fb06cb49b0ba9dd9f1bc0eef1f\\setup.py'"'"'; __file__='"'"'C:\\Users\\USer\\AppData\\Local\\Temp\\pip-install-lfu2ezm2\\matplotlib_a6f263fb06cb49b0ba9dd9f1bc0eef1f\\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-iz0t3g38\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\USer\AppData\Roaming\Python\Python310\Include\matplotlib' Check the logs for full command output.
There is no version for matplotlib in Python 3.10, try using an older version of python.
Note: Most of the solutions to similar problem suggest that, I retry on CMD admin access. I have tried and still it wont install and returns similar error.
SoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\twilio\rest\api\v2010\account\sip\domain\auth_types\auth_registrations_mapping
error: could not create 'C:\Users\manoj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\twilio\rest\api\v2010\account\sip\domain\auth_types\auth_registrations_mapping\auth_registrations_credential_list_mapping.py': No such file or directory
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\manoj\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\manoj\\AppData\\Local\\Temp\\pip-install-6lxfxplk\\twilio_26ffaa2a98754c52996da5165593b5ba\\setup.py'"'"'; __file__='"'"'C:\\Users\\manoj\\AppData\\Local\\Temp\\pip-install-6lxfxplk\\twilio_26ffaa2a98754c52996da5165593b5ba\\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\manoj\AppData\Local\Temp\pip-record-ovyqxs5v\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\manoj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\twilio' Check the logs for full command output.
Twilio developer evangelist here.
I believe you have hit the Windows path length limit of 260 characters, which is why this file is failing. You can enable longer paths by following the instructions in the Windows documentation here.
Essentially, the Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled (Type: REG_DWORD) registry key must exist and be set to 1. Then, after a reboot you should be able to use longer paths and your installation should succeed.
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.