Lets start with I am a noob to Python.
I am trying to install osmnx on a Mac using Terminal - but getting the following error. Any idea on a resolution to this?
I have independently installed rtree successfully, so not sure what else to try?
pip3 install mysql-connector-python
Requirement already satisfied: mysql-connector-python in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (8.0.21)
Requirement already satisfied: protobuf>=3.0.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from mysql-connector-python) (3.12.4)
Requirement already satisfied: six>=1.9 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from protobuf>=3.0.0->mysql-connector-python) (1.15.0)
Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from protobuf>=3.0.0->mysql-connector-python) (49.6.0)
familys-imac:~ markhowman$ pip3 install osmnx
Collecting osmnx
Using cached osmnx-0.15.1-py2.py3-none-any.whl (84 kB)
Collecting matplotlib>=3.2
Using cached matplotlib-3.3.1-cp38-cp38-macosx_10_9_x86_64.whl (8.5 MB)
Requirement already satisfied: networkx>=2.4 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from osmnx) (2.4)
Collecting descartes>=1.1
Using cached descartes-1.1.0-py3-none-any.whl (5.8 kB)
Collecting requests>=2.23
Using cached requests-2.24.0-py2.py3-none-any.whl (61 kB)
Requirement already satisfied: numpy>=1.18 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from osmnx) (1.19.1)
Requirement already satisfied: pyproj>=2.6 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from osmnx) (2.6.1.post1)
Requirement already satisfied: pandas>=1.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from osmnx) (1.1.0)
Requirement already satisfied: Shapely>=1.7 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from osmnx) (1.7.0)
Collecting Rtree>=0.9
Using cached Rtree-0.9.4.tar.gz (62 kB)
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ck/8_3lww7j31xdm3m91c417x_c0000gn/T/pip-install-oy9i8ju5/rtree/setup.py'"'"'; __file__='"'"'/private/var/folders/ck/8_3lww7j31xdm3m91c417x_c0000gn/T/pip-install-oy9i8ju5/rtree/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/ck/8_3lww7j31xdm3m91c417x_c0000gn/T/pip-pip-egg-info-k40std78
cwd: /private/var/folders/ck/8_3lww7j31xdm3m91c417x_c0000gn/T/pip-install-oy9i8ju5/rtree/
Complete output (15 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/ck/8_3lww7j31xdm3m91c417x_c0000gn/T/pip-install-oy9i8ju5/rtree/setup.py", line 3, in <module>
import rtree
File "/private/var/folders/ck/8_3lww7j31xdm3m91c417x_c0000gn/T/pip-install-oy9i8ju5/rtree/rtree/__init__.py", line 1, in <module>
from .index import Rtree
File "/private/var/folders/ck/8_3lww7j31xdm3m91c417x_c0000gn/T/pip-install-oy9i8ju5/rtree/rtree/index.py", line 6, in <module>
from . import core
File "/private/var/folders/ck/8_3lww7j31xdm3m91c417x_c0000gn/T/pip-install-oy9i8ju5/rtree/rtree/core.py", line 143, in <module>
rt.Error_GetLastErrorNum.restype = ctypes.c_int
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__
func = self.__getitem__(name)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ctypes/__init__.py", line 391, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(RTLD_DEFAULT, Error_GetLastErrorNum): symbol not found
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Make sure you install OSMnx according to its installation instructions.
OSMnx is pure Python and thus its installation alone is trivial, but, it depends on geopandas which itself has tricky dependencies (like rtree) to install. If you follow OSMnx's documented installation instructions, it should all be smooth and seamless.
See also this related answer.
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’m trying to install matplotlib with pip on an M1 mac with macOS 11.4, but get the following error:
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting matplotlib
Using cached matplotlib-3.4.3.tar.gz (37.9 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: cycler>=0.10 in /opt/homebrew/lib/python3.9/site-packages (from matplotlib) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /opt/homebrew/lib/python3.9/site-packages (from matplotlib) (1.3.2)
Requirement already satisfied: numpy>=1.16 in /opt/homebrew/lib/python3.9/site-packages (from matplotlib) (1.21.2)
Requirement already satisfied: pillow>=6.2.0 in /opt/homebrew/lib/python3.9/site-packages (from matplotlib) (8.3.2)
Requirement already satisfied: pyparsing>=2.2.1 in /opt/homebrew/lib/python3.9/site-packages (from matplotlib) (2.4.7)
Requirement already satisfied: python-dateutil>=2.7 in /opt/homebrew/lib/python3.9/site-packages (from matplotlib) (2.8.2)
Requirement already satisfied: six in /opt/homebrew/lib/python3.9/site-packages (from cycler>=0.10->matplotlib) (1.16.0)
Building wheels for collected packages: matplotlib
Building wheel for matplotlib (setup.py): started
Building wheel for matplotlib (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /opt/homebrew/opt/python#3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/z1/6807g5fn2tl27vlms0t5wqnm0000gq/T/pip-install-7jtr3een/matplotlib_9167cea08b4b47ea908a69fdb7be92b9/setup.py'"'"'; __file__='"'"'/private/var/folders/z1/6807g5fn2tl27vlms0t5wqnm0000gq/T/pip-install-7jtr3een/matplotlib_9167cea08b4b47ea908a69fdb7be92b9/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'"'"'))' bdist_wheel -d /private/var/folders/z1/6807g5fn2tl27vlms0t5wqnm0000gq/T/pip-wheel-ipsv3z0z
cwd: /private/var/folders/z1/6807g5fn2tl27vlms0t5wqnm0000gq/T/pip-install-7jtr3een/matplotlib_9167cea08b4b47ea908a69fdb7be92b9/
Complete output (639 lines):
(due to lengh restrictions here, the full output can be found at https://pastebin.com/MyGhbE5q )
Any ideas how to fix?
This happens both if I run
pip install matplotlib
or
pip3 install matplotlib
This question already has answers here:
How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages?
(9 answers)
Closed 1 year ago.
I work in R, which is MUCH better than python. Pip will not install anything for me aside from generic boring python packages. Is there a way to manually install packages without going through this insufferable process?
pip3 install scrublet
Requirement already satisfied: scrublet in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages\scrublet-0.2.1-py3.9.egg (0.2.1)
Requirement already satisfied: cython in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages\cython-3.0a6-py3.9.egg (from scrublet) (3.0a6)
Requirement already satisfied: numpy in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from scrublet) (1.20.1)
Requirement already satisfied: scipy in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from scrublet) (1.6.1)
Requirement already satisfied: scikit-learn in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages\scikit_learn-0.24.1-py3.9-win-amd64.egg (from scrublet) (0.24.1)
Requirement already satisfied: scikit-image in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from scrublet) (0.18.1)
Requirement already satisfied: matplotlib in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from scrublet) (3.3.4)
Collecting annoy
Using cached annoy-1.17.0.tar.gz (646 kB)
Requirement already satisfied: numba in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages\numba-0.53.0rc2-py3.9-win-amd64.egg (from scrublet) (0.53.0rc2)
Requirement already satisfied: pandas in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages\pandas-1.2.2-py3.9-win-amd64.egg (from scrublet) (1.2.2)
Requirement already satisfied: umap-learn in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages\umap_learn-0.5.1-py3.9.egg (from scrublet) (0.5.1)
Requirement already satisfied: pillow>=6.2.0 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from matplotlib->scrublet) (8.1.0)
Requirement already satisfied: cycler>=0.10 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from matplotlib->scrublet) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from matplotlib->scrublet) (1.3.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from matplotlib->scrublet) (2.4.7)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from matplotlib->scrublet) (2.8.1)
Requirement already satisfied: six in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from cycler>=0.10->matplotlib->scrublet) (1.15.0)
Requirement already satisfied: llvmlite<0.37,>=0.36.0rc1 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from numba->scrublet) (0.36.0rc2)
Requirement already satisfied: setuptools in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from numba->scrublet) (54.0.0)
Requirement already satisfied: pytz>=2017.3 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from pandas->scrublet) (2021.1)
Requirement already satisfied: networkx>=2.0 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from scikit-image->scrublet) (2.5)
Requirement already satisfied: tifffile>=2019.7.26 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from scikit-image->scrublet) (2021.2.26)
Requirement already satisfied: imageio>=2.3.0 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from scikit-image->scrublet) (2.9.0)
Requirement already satisfied: PyWavelets>=1.1.1 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from scikit-image->scrublet) (1.1.1)
Requirement already satisfied: decorator>=4.3.0 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from networkx>=2.0->scikit-image->scrublet) (4.4.2)
Requirement already satisfied: joblib>=0.11 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from scikit-learn->scrublet) (1.0.1)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from scikit-learn->scrublet) (2.1.0)
Requirement already satisfied: pynndescent>=0.5 in c:\users\danie\appdata\local\programs\python\python39\lib\site-packages (from umap-learn->scrublet) (0.5.2)
Using legacy 'setup.py install' for annoy, since package 'wheel' is not installed.
Installing collected packages: annoy
Running setup.py install for annoy ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\danie\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Windows\\Temp\\pip-install-omk6ze2e\\annoy_3047d582a1534335aeb9b39626f0c183\\setup.py'"'"'; __file__='"'"'C:\\Windows\\Temp\\pip-install-omk6ze2e\\annoy_3047d582a1534335aeb9b39626f0c183\\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:\Windows\Temp\pip-record-x7azmtt5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\danie\appdata\local\programs\python\python39\Include\annoy'
cwd: C:\Windows\Temp\pip-install-omk6ze2e\annoy_3047d582a1534335aeb9b39626f0c183\
Complete output (11 lines):
WARNING: The wheel package is not available.
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\annoy
copying annoy\__init__.py -> build\lib.win-amd64-3.9\annoy
running build_ext
building 'annoy.annoylib' 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\danie\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Windows\\Temp\\pip-install-omk6ze2e\\annoy_3047d582a1534335aeb9b39626f0c183\\setup.py'"'"'; __file__='"'"'C:\\Windows\\Temp\\pip-install-omk6ze2e\\annoy_3047d582a1534335aeb9b39626f0c183\\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:\Windows\Temp\pip-record-x7azmtt5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\danie\appdata\local\programs\python\python39\Include\annoy' Check the logs for full command output.
Judging by the packages you are installing, I would recommend trying Anaconda. It will install all of your data science related packages for you and make sure there are NO version mismatches between packages.
In my experience, I've spend dozens of hours fighting with screens like the one above. Then, I used the Anaconda distribution and everything "just worked".
I am trying Watson visual recognition with Python, following this: https://www.ibm.com/watson/developercloud/visual-recognition/api/v3/python.html?python#introduction
while tried to install the library:
pip install --upgrade "watson-developer-cloud>=1.2.1"
I am getting following error even after installing "Microsoft Visual C++ 14.0", I have uninstalled other versions of MSVC++ too.
Collecting watson-developer-cloud>=1.2.1
Using cached watson-developer-cloud-1.2.1.tar.gz
Requirement already up-to-date: requests<3.0,>=2.0 in c:\python36\lib\site-packages (from watson-developer-cloud>=1.2.1)
Requirement already up-to-date: python_dateutil>=2.5.3 in c:\python36\lib\site-packages (from watson-developer-cloud>=1.2.1)
Requirement already up-to-date: autobahn>=0.10.9 in c:\python36\lib\site-packages (from watson-developer-cloud>=1.2.1)
Collecting Twisted>=13.2.0 (from watson-developer-cloud>=1.2.1)
Using cached Twisted-17.9.0.tar.bz2
Collecting pyOpenSSL>=16.2.0 (from watson-developer-cloud>=1.2.1)
Using cached pyOpenSSL-17.5.0-py2.py3-none-any.whl
Collecting service-identity>=17.0.0 (from watson-developer-cloud>=1.2.1)
Using cached service_identity-17.0.0-py2.py3-none-any.whl
Requirement already up-to-date: idna<2.7,>=2.5 in c:\python36\lib\site-packages (from requests<3.0,>=2.0->watson-developer-cloud>=1.2.1)
Requirement already up-to-date: certifi>=2017.4.17 in c:\python36\lib\site-packages (from requests<3.0,>=2.0->watson-developer-cloud>=1.2.1)
Requirement already up-to-date: chardet<3.1.0,>=3.0.2 in c:\python36\lib\site-packages (from requests<3.0,>=2.0->watson-developer-cloud>=1.2.1)
Requirement already up-to-date: urllib3<1.23,>=1.21.1 in c:\python36\lib\site-packages (from requests<3.0,>=2.0->watson-developer-cloud>=1.2.1)
Requirement already up-to-date: six>=1.5 in c:\python36\lib\site-packages (from python_dateutil>=2.5.3->watson-developer-cloud>=1.2.1)
Requirement already up-to-date: txaio>=2.7.0 in c:\python36\lib\site-packages (from autobahn>=0.10.9->watson-developer-cloud>=1.2.1)
Requirement already up-to-date: zope.interface>=4.0.2 in c:\python36\lib\site-packages (from Twisted>=13.2.0->watson-developer-cloud>=1.2.1)
Requirement already up-to-date: constantly>=15.1 in c:\python36\lib\site-packages (from Twisted>=13.2.0->watson-developer-cloud>=1.2.1)
Requirement already up-to-date: incremental>=16.10.1 in c:\python36\lib\site-packages (from Twisted>=13.2.0->watson-developer-cloud>=1.2.1)
Requirement already up-to-date: Automat>=0.3.0 in c:\python36\lib\site-packages (from Twisted>=13.2.0->watson-developer-cloud>=1.2.1)
Requirement already up-to-date: hyperlink>=17.1.1 in c:\python36\lib\site-packages (from Twisted>=13.2.0->watson-developer-cloud>=1.2.1)
Collecting cryptography>=2.1.4 (from pyOpenSSL>=16.2.0->watson-developer-cloud>=1.2.1)
Using cached cryptography-2.2.2-cp36-cp36m-win_amd64.whl
Collecting pyasn1 (from service-identity>=17.0.0->watson-developer-cloud>=1.2.1)
Using cached pyasn1-0.4.2-py2.py3-none-any.whl
Collecting pyasn1-modules (from service-identity>=17.0.0->watson-developer-cloud>=1.2.1)
Using cached pyasn1_modules-0.2.1-py2.py3-none-any.whl
Requirement already up-to-date: attrs in c:\python36\lib\site-packages (from service-identity>=17.0.0->watson-developer-cloud>=1.2.1)
Requirement already up-to-date: setuptools in c:\python36\lib\site-packages (from zope.interface>=4.0.2->Twisted>=13.2.0->watson-developer-cloud>=1.2.1)
Collecting cffi>=1.7; platform_python_implementation != "PyPy" (from cryptography>=2.1.4->pyOpenSSL>=16.2.0->watson-developer-cloud>=1.2.1)
Using cached cffi-1.11.5-cp36-cp36m-win_amd64.whl
Collecting asn1crypto>=0.21.0 (from cryptography>=2.1.4->pyOpenSSL>=16.2.0->watson-developer-cloud>=1.2.1)
Using cached asn1crypto-0.24.0-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.7; platform_python_implementation != "PyPy"->cryptography>=2.1.4->pyOpenSSL>=16.2.0->watson-developer-cloud>=1.2.1)
Using cached pycparser-2.18.tar.gz
Installing collected packages: Twisted, pycparser, cffi, asn1crypto, cryptography, pyOpenSSL, pyasn1, pyasn1-modules, service-identity, watson-developer-cloud
Running setup.py install for Twisted: started
Running setup.py install for Twisted: finished with status 'error'
Complete output from command c:\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\IPC_AD~1\\AppData\\Local\\Temp\\pip-build-ahl2cx7d\\Twisted\\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\IPC_AD~1\AppData\Local\Temp\pip-tqzdkhaj-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\twisted
copying src\twisted\copyright.py -> build\lib.win-amd64-3.6\twisted
copying src\twisted\plugin.py -> build\lib.win-amd64-3.6\twisted
copying src\twisted\_version.py -> build\lib.win-amd64-3.6\twisted
copying src\twisted\__init__.py -> build\lib.win-amd64-3.6\twisted
.
.
.
.
copying src\twisted\words\xish\xpathparser.g -> build\lib.win-amd64-3.6\twisted\words\xish
running build_ext
building 'twisted.test.raiser' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
I have tried to install twisted by from .wl as
pip install Twisted-17.9.0-cp37-cp37m-win_amd64.whl
and
pip install Twisted-17.9.0-cp27-cp27m-win32.whl
both failed with error:
Twisted-17.9.0-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
I am using Windows 7 64
While installing from unofficial python wheels you need to find appropriate wheel for your python and os.
This looks like the naming convention.
module (mod. ver.) (py ver.) os(32 or 64)
↓ ↓ ↓ ↓
Twisted-17.9.0-cp36-cp36m-win_amd64.whl
I have solved the issue by manually downloading and installing "Twisted" library with following command.
pip install Twisted-17.9.0-cp37-cp37m-win_amd64.whl
Thanks. This worked for me too. Was getting the same error.
Manually downloaded and installed Twisted 17.9.0 using
pip install Twisted-17.9.0-cp36-cp36m-win32.whl
and it worked.
I tried installing GraphLab Create through pip. Zipped through the steps until the final step stopped me in my tracks.
The final command:
pip install --upgrade --no-cache-dir https://get.dato.com/GraphLab-Create/1.7.1/email#gmail.com/*******license key****/GraphLab-Create-License.tar.gz
This gives the following output:
Collecting https://get.dato.com/GraphLab-Create/1.7.1/***************#gmail.com/********license***********/GraphLab-Create-License.tar.gz Downloading https://get.dato.com/GraphLab-Create/1.7.1/***************#gmail.com/*******license*************/GraphLab-Create-License.tar.gz Collecting graphlab-create>=1.7.1 (from GraphLab-Create-License==1.7.1) Downloading GraphLab_Create-1.7.1-cp27-none-win_amd64.whl (45.0MB) Requirement already up-to-date: boto==2.33.0 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: prettytable==0.7.2 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: decorator==3.4.0 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: librato-metrics==0.4.9 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: awscli==1.6.2 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: multipledispatch>=0.4.7 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Collecting sseclient==0.0.8 (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Downloading sseclient-0.0.8.tar.gz Collecting certifi==2015.04.28 (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Downloading certifi-2015.04.28-py2.py3-none-any.whl (373kB) Requirement already up-to-date: requests==2.3.0 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: mixpanel-py==3.1.1 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: tornado==4.1 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: six in c:\anaconda2\lib\site-packages (from librato-metrics==0.4.9->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: rsa==3.1.2 in c:\anaconda2\lib\site-packages (from awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: botocore<0.74.0,>=0.73.0 in c:\anaconda2\lib\site-packages (from awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: docutils>=0.10 in c:\anaconda2\lib\site-packages (from awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: colorama==0.2.5 in c:\anaconda2\lib\site-packages (from awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: bcdoc<0.13.0,>=0.12.0 in c:\anaconda2\lib\site-packages (from awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: backports.ssl-match-hostname in c:\anaconda2\lib\site-packages (from tornado==4.1->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: pyasn1>=0.1.3 in c:\anaconda2\lib\site-packages (from rsa==3.1.2->awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: jmespath==0.5.0 in c:\anaconda2\lib\site-packages (from botocore<0.74.0,>=0.73.0->awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: python-dateutil>=2.1 in c:\anaconda2\lib\site-packages (from botocore<0.74.0,>=0.73.0->awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Installing collected packages: sseclient, certifi, graphlab-create, GraphLab-Create-License Running setup.py install for sseclient Found existing installation: certifi 2015.11.20.1
Uninstalling certifi-2015.11.20.1:
Successfully uninstalled certifi-2015.11.20.1 Running setup.py install for GraphLab-Create-License
Complete output from command C:\Anaconda2\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\abhish~1\\appdata\\local\\temp\\pip-7mleag-build\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\abhish~1\appdata\local\temp\pip-bv7hrn-record\install-record.txt
--single-version-externally-managed --compile:
running install
running build
running install_egg_info
running egg_info
writing requirements to GraphLab_Create_License.egg-info\requires.txt
writing GraphLab_Create_License.egg-info\PKG-INFO
writing top-level names to GraphLab_Create_License.egg-info\top_level.txt
writing dependency_links to GraphLab_Create_License.egg-info\dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'GraphLab_Create_License.egg-info\SOURCES.txt'
writing manifest file 'GraphLab_Create_License.egg-info\SOURCES.txt'
Copying GraphLab_Create_License.egg-info to C:\Anaconda2\Lib\site-packages\GraphLab_Create_License-1.7.1-py2.7.egg-info
running install_scripts
writing list of installed files to 'c:\users\abhish~1\appdata\local\temp\pip-bv7hrn-record\install-record.txt'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\abhish~1\appdata\local\temp\pip-7mleag-build\setup.py", line 61, in <module>
cmdclass=dict(install=SetLicense)
File "C:\Anaconda2\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Anaconda2\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Anaconda2\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\users\abhish~1\appdata\local\temp\pip-7mleag-build\setup.py", line 41, in run
config.read(config_filename)
File "C:\Anaconda2\lib\ConfigParser.py", line 305, in read
self._read(fp, filename)
File "C:\Anaconda2\lib\ConfigParser.py", line 512, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: C:\Users\abhish**\.graphlab\config, line: 1
'\x00\***lots of hex code***x00'
----------------------------------------
What is wrong and how do I fix it?
The config file seems corrupted, possibly due to a previous failed installation; it should always contain section headers.
Try deleting the config file (C:\Users\abhish**\.graphlab\config) and re-installing, which will re-create it.