I am trying to install torch-sparse in Google Colab using ! pip install torch-sparse, but i am getting the following erorr:
Collecting torch-sparse
Using cached https://files.pythonhosted.org/packages/0e/bf/6242893c898621e7e4756e1ad298e903df6dfae208aec1c32adf8cfd1f7f/torch_sparse-0.4.4.tar.gz
Requirement already satisfied: scipy in /usr/local/lib/python3.6/dist-packages (from torch-sparse) (1.4.1)
Requirement already satisfied: numpy>=1.13.3 in /usr/local/lib/python3.6/dist-packages (from scipy->torch-sparse) (1.17.5)
Building wheels for collected packages: torch-sparse
Building wheel for torch-sparse (setup.py) ... error
ERROR: Failed building wheel for torch-sparse
Running setup.py clean for torch-sparse
Failed to build torch-sparse
Installing collected packages: torch-sparse
Running setup.py install for torch-sparse ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h3_oysnr/torch-sparse/setup.py'"'"'; __file__='"'"'/tmp/pip-install-h3_oysnr/torch-sparse/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-0xvimdk5/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
How can I fix it?
You need to go into Runtime -> Change runtime type and choose a GPU as the Hardware accelerator. After this it should install fine.
Collecting torch-sparse
Downloading https://files.pythonhosted.org/packages/0e/bf/6242893c898621e7e4756e1ad298e903df6dfae208aec1c32adf8cfd1f7f/torch_sparse-0.4.4.tar.gz
Requirement already satisfied: scipy in /usr/local/lib/python3.6/dist-packages (from torch-sparse) (1.4.1)
Requirement already satisfied: numpy>=1.13.3 in /usr/local/lib/python3.6/dist-packages (from scipy->torch-sparse) (1.17.5)
Building wheels for collected packages: torch-sparse
Building wheel for torch-sparse (setup.py) ... done
Created wheel for torch-sparse: filename=torch_sparse-0.4.4-cp36-cp36m-linux_x86_64.whl size=4956229 sha256=0463ad1735eb37f9f555b7c83b32bd43cfee20e312061e8efca43f2c29158fbb
Stored in directory: /root/.cache/pip/wheels/8a/1a/6f/88952b83ebba6b2742909fcd6e320e3a99fc7d2a2428391f8c
Successfully built torch-sparse
Installing collected packages: torch-sparse
Successfully installed torch-sparse-0.4.4
Related
I want to my code running for 24 hours.
So i made Google Cloude Compute Engine instance
and tried install python and other packages
but ccxt package has a error to install
this is error sentence
~$ pip3 install ccxt
Collecting ccxt
Using cached https://files.pythonhosted.org/packages/78/ec/1b33bd878c88898079e8582d01ad7f6e9d7b99377015e768537269
9cf7e5/ccxt-1.73.12-py2.py3-none-any.whl
Requirement already satisfied: aiohttp>=3.8; python_version >= "3.5.2" in ./.local/lib/python3.7/site-packages (fro
m ccxt) (3.8.1)
Requirement already satisfied: requests>=2.18.4 in ./.local/lib/python3.7/site-packages (from ccxt) (2.27.1)
Requirement already satisfied: cryptography>=2.6.1 in /usr/lib/python3/dist-packages (from ccxt) (2.6.1)
Requirement already satisfied: yarl==1.7.2; python_version >= "3.5.2" in ./.local/lib/python3.7/site-packages (from
ccxt) (1.7.2)
Requirement already satisfied: certifi>=2018.1.18 in ./.local/lib/python3.7/site-packages (from ccxt) (2021.10.8)
Collecting aiodns>=1.1.1; python_version >= "3.5.2" (from ccxt)
Using cached https://files.pythonhosted.org/packages/ab/72/991ee33a517df69c6cd6f3486cfe9b6329557cb55acaa8cefac33c
2aa4d2/aiodns-3.0.0-py3-none-any.whl
Requirement already satisfied: setuptools>=60.9.0 in ./.local/lib/python3.7/site-packages (from ccxt) (60.9.1)
Requirement already satisfied: multidict<7.0,>=4.5 in ./.local/lib/python3.7/site-packages (from aiohttp>=3.8; pyth
on_version >= "3.5.2"->ccxt) (6.0.2)
Requirement already satisfied: aiosignal>=1.1.2 in ./.local/lib/python3.7/site-packages (from aiohttp>=3.8; python_
version >= "3.5.2"->ccxt) (1.2.0)
Requirement already satisfied: asynctest==0.13.0; python_version < "3.8" in ./.local/lib/python3.7/site-packages (f
rom aiohttp>=3.8; python_version >= "3.5.2"->ccxt) (0.13.0)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in ./.local/lib/python3.7/site-packages (from aiohttp>=
3.8; python_version >= "3.5.2"->ccxt) (2.0.12)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in ./.local/lib/python3.7/site-packages (from aiohttp>=3
.8; python_version >= "3.5.2"->ccxt) (4.0.2)
Requirement already satisfied: typing-extensions>=3.7.4; python_version < "3.8" in ./.local/lib/python3.7/site-pack
ages (from aiohttp>=3.8; python_version >= "3.5.2"->ccxt) (4.1.1)
Requirement already satisfied: attrs>=17.3.0 in ./.local/lib/python3.7/site-packages (from aiohttp>=3.8; python_ver
sion >= "3.5.2"->ccxt) (21.4.0)
Requirement already satisfied: frozenlist>=1.1.1 in ./.local/lib/python3.7/site-packages (from aiohttp>=3.8; python
_version >= "3.5.2"->ccxt) (1.3.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.local/lib/python3.7/site-packages (from requests>=2.18.4
->ccxt) (1.26.8)
Requirement already satisfied: idna<4,>=2.5; python_version >= "3" in ./.local/lib/python3.7/site-packages (from re
quests>=2.18.4->ccxt) (3.3)
Collecting pycares>=4.0.0 (from aiodns>=1.1.1; python_version >= "3.5.2"->ccxt)
Using cached https://files.pythonhosted.org/packages/4c/5a/a82398e38049e689350f07b46dd8493a8a74821e39c2b904350a31
60c1cb/pycares-4.1.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.w
hl
Collecting cffi>=1.5.0 (from pycares>=4.0.0->aiodns>=1.1.1; python_version >= "3.5.2"->ccxt)
Using cached https://files.pythonhosted.org/packages/00/9e/92de7e1217ccc3d5f352ba21e52398372525765b2e0c4530e6eb2b
a9282a/cffi-1.15.0.tar.gz
Requirement already satisfied: pycparser in ./.local/lib/python3.7/site-packages (from cffi>=1.5.0->pycares>=4.0.0-
>aiodns>=1.1.1; python_version >= "3.5.2"->ccxt) (2.21)
Building wheels for collected packages: cffi
Running setup.py bdist_wheel for cffi ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-afnot
79o/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(c
ompile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-p40y4ye4 --python-tag cp37:
running bdist_wheel
running build
running build_py
running build_ext
building '_cffi_backend' extension
c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
----------------------------------------
Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
Installing collected packages: cffi, pycares, aiodns, ccxt
Running setup.py install for cffi ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-afn
ot79o/cffi/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-yai9v9gy/install-record.txt --single-version-ex
ternally-managed --compile --user --prefix=:
running install
/home/dlqudgjs12/.local/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarn
ing: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_py
running build_ext
building '_cffi_backend' extension
c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-afnot79o/cffi/setup.py';f=g
etattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__,
'exec'))" install --record /tmp/pip-record-yai9v9gy/install-record.txt --single-version-externally-managed --compi
le --user --prefix=" failed with error code 1 in /tmp/pip-install-afnot79o/cffi/
i tried to solve this problem.
but i couldn't find right solution
also other packages..
pip3 install TA-lib
pip3 install pandas_ta
both packages are stoped during install..
Several reasons may trigger this error. To mention a few:
Your system development libraries are missing.
You may not be running pip from your virtual environment.
You didn’t specify when you were installing PIL.
The error : x86_64-Linux-gnu-gcc failed with exit status 1 can be triggered by missing system development libraries packages, installing these library packages can fix the problem.(e.g. ffi→ libffi, ssl → libssl).
Install the appropriate packages by the following command
sudo apt-get install python3-dev
or for a specific version of Python 3, replace x with the minor version in
sudo apt-get install python3.x-dev
Try this command for installing the library package.
sudo apt-get install libffi-dev
Refer to the link for more information on why this error will trigger.
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 execute the following command:
pip2 install -r requirements.txt --upgrade --force-reinstall --ignore-installed --install-option=--prefix= --target /home/peng/git/datapassports/spookystuff/uav/target/classes/python
I got the following error:
/usr/lib/python2.7/dist-packages/pip/commands/install.py:212: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
cmdoptions.check_install_build_global(options)
Collecting dronekit from git+https://github.com/dronekit/dronekit-python.git#ed132c#egg=dronekit (from -r requirements.txt (line 7))
Cloning https://github.com/dronekit/dronekit-python.git (to ed132c) to /tmp/pip-build-p2lVND/dronekit
Could not find a tag or branch 'ed132c', assuming commit.
Collecting dronekit-sitl==3.2.0 (from -r requirements.txt (line 8))
Using cached https://files.pythonhosted.org/packages/d2/ff/967e87ac5ac09cea5cdb5bbca5b48a24f695d6e583deb26f7ecf491fb884/dronekit_sitl-3.2.0.tar.gz
Collecting future==0.17.1 (from -r requirements.txt (line 9))
Using cached https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz
Collecting lxml==4.3.0 (from -r requirements.txt (line 10))
Using cached https://files.pythonhosted.org/packages/16/4a/b085a04d6dad79aa5c00c65c9b2bbcb2c6c22e5ac341e7968e0ad2c57e2f/lxml-4.3.0.tar.gz
Collecting mavproxy==1.6.4 (from -r requirements.txt (line 11))
Using cached https://files.pythonhosted.org/packages/fc/be/0ecacae8e949ba2fe800c544108a1a66e814ed53e44fee5cfd2c376ccd03/MAVProxy-1.6.4.tar.gz
Collecting monotonic==1.5 (from -r requirements.txt (line 12))
Using cached https://files.pythonhosted.org/packages/19/c1/27f722aaaaf98786a1b338b78cf60960d9fe4849825b071f4e300da29589/monotonic-1.5.tar.gz
Collecting psutil==5.5.0 (from -r requirements.txt (line 13))
Using cached https://files.pythonhosted.org/packages/6e/a0/833bcbcede5141cc5615e50c7cc5b960ce93d9c9b885fbe3b7d36e48a2d4/psutil-5.5.0.tar.gz
Collecting pymavlink==2.3.4 (from -r requirements.txt (line 14))
Using cached https://files.pythonhosted.org/packages/61/d7/a3b2e6e2d7bffd2d5426359111a2d90c9b13ca3148eec1aed9fffa639f5e/pymavlink-2.3.4.tar.gz
Collecting pyserial==3.4 (from -r requirements.txt (line 15))
Using cached https://files.pythonhosted.org/packages/cc/74/11b04703ec416717b247d789103277269d567db575d2fd88f25d9767fe3d/pyserial-3.4.tar.gz
Collecting simplejson==3.16.0 (from -r requirements.txt (line 16))
Using cached https://files.pythonhosted.org/packages/e3/24/c35fb1c1c315fc0fffe61ea00d3f88e85469004713dab488dee4f35b0aff/simplejson-3.16.0.tar.gz
Collecting six==1.12.0 (from -r requirements.txt (line 17))
Using cached https://files.pythonhosted.org/packages/dd/bf/4138e7bfb757de47d1f4b6994648ec67a51efe58fa907c1e11e350cddfca/six-1.12.0.tar.gz
Skipping bdist_wheel for dronekit-sitl, due to binaries being disabled for it.
Skipping bdist_wheel for future, due to binaries being disabled for it.
Skipping bdist_wheel for lxml, due to binaries being disabled for it.
Skipping bdist_wheel for mavproxy, due to binaries being disabled for it.
Skipping bdist_wheel for monotonic, due to binaries being disabled for it.
Skipping bdist_wheel for psutil, due to binaries being disabled for it.
Skipping bdist_wheel for pymavlink, due to binaries being disabled for it.
Skipping bdist_wheel for pyserial, due to binaries being disabled for it.
Skipping bdist_wheel for simplejson, due to binaries being disabled for it.
Skipping bdist_wheel for six, due to binaries being disabled for it.
Installing collected packages: future, monotonic, lxml, pymavlink, dronekit, psutil, six, dronekit-sitl, pyserial, mavproxy, simplejson
Running setup.py install for future: started
Running setup.py install for future: finished with status 'error'
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-p2lVND/future/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-ymI1OI-record/install-record.txt --single-version-externally-managed --compile --prefix= --user --prefix= --home=/tmp/tmpEs6GmF:
running install
error: can't combine user with prefix, exec_prefix/home, or install_(plat)base
What does this error message mean? And how to fix it?
I'm using ubuntu 18.04 and python 2.7. Due to python2 system dependencies being directly managed by linux package manager (apt), I cannot run pip install as root user.
This part is wrong:
--install-option=--prefix=
The syntax should be like:
--install-option="--prefix='/usr/local'"
However, that's kind of irrelevant, you don't need root access, install pip packages with:
pip2 install -r requirements.txt --user
I'm a first timer to Python and I'm trying to set up an easy quick backend with it. When trying to install Flask using Pip I run this and see the following error:
Rutgers-MacBook-Pro:~ rutger$ pip install flask
Collecting flask
Downloading Flask-0.11.1-py2.py3-none-any.whl (80kB)
100% |████████████████████████████████| 81kB 1.3MB/s
Collecting itsdangerous>=0.21 (from flask)
Downloading itsdangerous-0.24.tar.gz (46kB)
100% |████████████████████████████████| 51kB 3.4MB/s
Collecting click>=2.0 (from flask)
Downloading click-6.6.tar.gz (283kB)
100% |████████████████████████████████| 286kB 1.5MB/s
Collecting Werkzeug>=0.7 (from flask)
Downloading Werkzeug-0.11.10-py2.py3-none-any.whl (306kB)
100% |████████████████████████████████| 307kB 1.7MB/s
Collecting Jinja2>=2.4 (from flask)
Downloading Jinja2-2.8-py2.py3-none-any.whl (263kB)
100% |████████████████████████████████| 266kB 2.7MB/s
Collecting MarkupSafe (from Jinja2>=2.4->flask)
Downloading MarkupSafe-0.23.tar.gz
Installing collected packages: itsdangerous, click, Werkzeug, MarkupSafe, Jinja2, flask
Running setup.py install for itsdangerous ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/15/tb28c0s930gf3k_7wxp56ckw0000gn/T/pip-build-X1QvJq/itsdangerous/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/15/tb28c0s930gf3k_7wxp56ckw0000gn/T/pip-l5geyj-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib
copying itsdangerous.py -> build/lib
running install_lib
copying build/lib/itsdangerous.py -> /Library/Python/2.7/site-packages
error: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/itsdangerous.py'
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/15/tb28c0s930gf3k_7wxp56ckw0000gn/T/pip-build-X1QvJq/itsdangerous/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/15/tb28c0s930gf3k_7wxp56ckw0000gn/T/pip-l5geyj-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/15/tb28c0s930gf3k_7wxp56ckw0000gn/T/pip-build-X1QvJq/itsdangerous/
I also see I've 2 versions of Python:
Rutgers-MacBook-Pro:~ rutger$ py
pydoc pydoc2.6 python python2 python2.6 python2.7 pythonw pythonw2.6
pydoc2 pydoc2.7 python-config python2-config python2.6-
Running 2.7 though:
Rutgers-MacBook-Pro:~ rutger$ python --version
Python 2.7.10
As you can see in the output, the error is
error: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/itsdangerous.py'
You can try again with sudo pip install flask which lets you run the original command as the root user.