Error building sasl for python 3.5.1 - python

To connect to Hive using Python 3.5.1
I was able to install pyhs2, thrift and Pyhive.
But during installation of sasl which is needed by phyhs2, got this error.
running install
running build
running build_py
creating build
creating build\lib.win32-3.5
creating build\lib.win32-3.5\sasl
copying sasl\__init__.py -> build\lib.win32-3.5\sasl
running egg_info
writing dependency_links to sasl.egg-info\dependency_links.txt
writing top-level names to sasl.egg-info\top_level.txt
writing sasl.egg-info\PKG-INFO
writing requirements to sasl.egg-info\requires.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'sasl.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'sasl.egg-info\SOURCES.txt'
copying sasl\saslwrapper.cpp -> build\lib.win32-3.5\sasl
copying sasl\saslwrapper.h -> build\lib.win32-3.5\sasl
copying sasl\saslwrapper.pyx -> build\lib.win32-3.5\sasl
running build_ext
building 'sasl.saslwrapper' extension
error: Unable to find vcvarsall.bat
----------------------------------------
Command "c:\users\mmt6168\appdata\local\programs\python\python35-32\python.exe -
u -c "import setuptools, tokenize;__file__='C:\\Users\\mmt6168\\AppData\\Local\\
Temp\\pip-build-qvb3rz0y\\sasl\\setup.py';exec(compile(getattr(tokenize, 'open',
open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --rec
ord C:\Users\mmt6168\AppData\Local\Temp\pip-irc4xc0f-record\install-record.txt -
-single-version-externally-managed --compile" failed with error code 1 in C:\Use
rs\mmt6168\AppData\Local\Temp\pip-build-qvb3rz0y\sasl\

Python is struggling to find a C++ compiler that matches the compiler that was used to compile your version of Python for Windows. For Python 3.5 on Windows, you need Visual C++ 14.0. A quick fix for this version is to install Visual Studio Community 2015.
Otherwise, see here: https://wiki.python.org/moin/WindowsCompilers#Microsoft_Visual_C.2B-.2B-_14.0_standalone:_Visual_C.2B-.2B-_Build_Tools_2015_.28x86.2C_x64.2C_ARM.29

Related

Turbodbc installation on Windows 10

I tried installing turbodbc and it gives me the following error and not sure what's wrong here.
My python version is 3.7
My command line output from Windows 10 Pro.
C:\Users\marunachalam\Downloads>pip install turbodbc
Collecting turbodbc
Using cached turbodbc-3.3.0.tar.gz (78 kB)
Requirement already satisfied: pybind11>=2.2.0 in c:\users\marunachalam\appdata\local\programs\python\python37-32\lib\site-packages (from turbodbc) (2.4.3)
Requirement already satisfied: six in c:\users\marunachalam\appdata\local\programs\python\python37-32\lib\site-packages (from turbodbc) (1.13.0)
Building wheels for collected packages: turbodbc
Building wheel for turbodbc (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\marunachalam\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\MARUNA~1\\AppData\\Local\\Temp\\pip-install-akbat0nu\\turbodbc\\setup.py'"'"'; __file__='"'"'C:\\Users\\MARUNA~1\\AppData\\Local\\Temp\\pip-install-akbat0nu\\turbodbc\\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 'C:\Users\MARUNA~1\AppData\Local\Temp\pip-wheel-qdxgecq5'
cwd: C:\Users\MARUNA~1\AppData\Local\Temp\pip-install-akbat0nu\turbodbc\
Complete output (27 lines):
warning: BOOST_ROOT enviroment variable not set
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\turbodbc
copying turbodbc\api_constants.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\connect.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\connection.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\constructors.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\cursor.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\data_types.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\exceptions.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\options.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\__init__.py -> build\lib.win32-3.7\turbodbc
running egg_info
writing turbodbc.egg-info\PKG-INFO
writing dependency_links to turbodbc.egg-info\dependency_links.txt
writing requirements to turbodbc.egg-info\requires.txt
writing top-level names to turbodbc.egg-info\top_level.txt
reading manifest file 'turbodbc.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'turbodbc.egg-info\SOURCES.txt'
running build_ext
building 'turbodbc_intern' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Failed building wheel for turbodbc
Running setup.py clean for turbodbc
Failed to build turbodbc
Disclaimer : Turbodc installation has problems with python version 3.8+. You will be able to install Turbodc on python 3.8+, but you'll face another error while using it (https://github.com/blue-yonder/turbodbc/issues/258). So if you want to use Turbodbc, better to stick to python version 3.7 and below. Now lets get Turbodbc installed on your machine
This is going to be a long one. Stay with me -
As the error states, firstly you need 'Microsoft Visual C++ Build Tools'. You'll get it on this page: https://visualstudio.microsoft.com/downloads/. Scroll down to 'Build Tools for Visual Studio'. Download it.
Run the installer. Select 'C++ build tools' to install. Make sure to choose 'Windows 10 (or whatever version you prefer) SDK' as well to prevent this error later - https://github.com/openssl/openssl/issues/586
After installing build tools if you try to install Turbodbc (pip install turbodbc), you'll see another error - python fatal error C1083: Cannot open include file: 'boost/locale.hpp'. Which is to say the battle is half won. To resolve this error follow the steps listed here - https://github.com/blue-yonder/turbodbc/issues/236. For your ease, I'll copy them below -
Download boost from https://www.boost.org/ (click on the "Current Release" version link, in my case "Version 1.72.0", then download the Windows zip file).
Unzip the zipfile somewhere on your PC.
In a command prompt, navigate to the boost top-level directory.
Run .\bootstrap.bat (this generates the b2 executable)
Run .\b2 (this generates the stage directory and contents, takes a few minutes to run)
Set the BOOST_ROOT env variable with something like
set BOOST_ROOT=C:\your\path\to\boost\boost_1_72_0\boost_1_72_0
Run pip install turbodbc
That's all. Turbodbc should now be installed in your machine.
Try follow
Sat, Jan 2 at 9:16 PM
https://www.boost.org/doc/libs/1_71_0/more/getting_started/windows.html. got working on windows 10 using Python39, download/install MS Visual Studio 2019 Community, unzip boost, set BOOST_ROOT env variable, rerun pip install turbodbc

Unable to install pymqi or py3mqi

The pip install py3mqi fails with the following error.
(mq) C:\Temp\>pip install py3mqi
Collecting py3mqi
Downloading https://files.pythonhosted.org/packages/5a/b7/cbe684e6a2a7f00dee116392d38c17c03b8281a8b5a021b655833233de26/py3mqi-1.6.0.tar.gz (65kB)
|████████████████████████████████| 71kB 770kB/s
Building wheels for collected packages: py3mqi
Building wheel for py3mqi (setup.py) ... error
ERROR: Complete output from command 'c:\users\dhdyk0\envs\mq\scripts\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\dhdyk0\\AppData\\Local\\Temp\\pip-install-jmsvk9ya\\py3mqi\\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 'C:\Users\dhdyk0\AppData\Local\Temp\pip-wheel-3y2i7hfm' --python-tag cp36:
ERROR: Building PyMQI client 32bits
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.6
creating build\lib.win32-3.6\pymqi
copying pymqi\__init__.py -> build\lib.win32-3.6\pymqi
copying pymqi\CMQC.py -> build\lib.win32-3.6\pymqi
copying pymqi\CMQCFC.py -> build\lib.win32-3.6\pymqi
copying pymqi\CMQXC.py -> build\lib.win32-3.6\pymqi
copying pymqi\CMQZC.py -> build\lib.win32-3.6\pymqi
running build_ext
building 'pymqi.pymqe' extension
error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'
I've tried to install both, pymqi and py3mqi and I'm getting the same error. I'm using Python 3.6, 32-bit.
Also, I have MQ Client installed as well as Visual Studio 15. There is the following path on my disk: C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC, but PlatformSDK\\lib is missing.
As JoshMC states pymqi now supports Python 3, and should be what you are using.
pymqi binds to the MQI C Layer, and requires access to MQ C Header files as well as a C compiler / linker, when it installs.
The error you are getting is a common Visual Studio error, when the Windows Platform SDK has not been installed. Essentially installing Visual Studio does not mean that you have installed the C / C++ compiler, and you need to do that also.
Did you consider trying to install Visual Studio 2019 with the python and c package?
That is needed for some packages.
An other possible option is, that py3mqi isn't available for Python 3.6.*

Error while installing PyGraphviz (Mac OS X, Anaconda)

I'm having trouble while installing PyGraphviz.
I'm using Anaconda in Mac OS X.
Error messages indicates some reasons, but I already checked out it is installed in anaconda directory.
Sundongui-MacBook-Pro:site-packages sundong$ pwd
/Users/sundong/anaconda/lib/python2.7/site-packages
Sundongui-MacBook-Pro:site-packages sundong$ pip install graphviz --upgrade
Requirement already up-to-date: graphviz in /Users/sundong/anaconda/lib/python2.7/site-packages
According to the error messages, How can I change the the include_dirs and library_dirs variables in setup.py??
Here is the error message that I meet
Sundongui-MacBook-Pro:anaconda sundong$ pip install pygraphviz
Collecting pygraphviz
Using cached pygraphviz-1.3.1.tar.gz
Building wheels for collected packages: pygraphviz
Running setup.py bdist_wheel for pygraphviz
Complete output from command /Users/sundong/anaconda/bin/python -c "import setuptools;__file__='/private/var/folders/p6/rjy4tf353bzfy7gsl5jn_yvc0000gn/T/pip-build-bLb4AR/pygraphviz/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/p6/rjy4tf353bzfy7gsl5jn_yvc0000gn/T/tmpwR_08Dpip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.5-x86_64-2.7
creating build/lib.macosx-10.5-x86_64-2.7/pygraphviz
copying pygraphviz/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz
copying pygraphviz/agraph.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz
copying pygraphviz/graphviz.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz
copying pygraphviz/release.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz
copying pygraphviz/version.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz
creating build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/test.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/test_attribute_defaults.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/test_attributes.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/test_clear.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/test_drawing.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/test_edge_attributes.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/test_graph.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/test_html.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/test_layout.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/test_node_attributes.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/test_readwrite.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/test_string.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/test_subgraph.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
copying pygraphviz/tests/test_unicode.py -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz/tests
running egg_info
writing pygraphviz.egg-info/PKG-INFO
writing top-level names to pygraphviz.egg-info/top_level.txt
writing dependency_links to pygraphviz.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pygraphviz.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.svn' found anywhere in distribution
no previously-included directories found matching 'doc/build'
writing manifest file 'pygraphviz.egg-info/SOURCES.txt'
copying pygraphviz/graphviz.i -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz
copying pygraphviz/graphviz_wrap.c -> build/lib.macosx-10.5-x86_64-2.7/pygraphviz
running build_ext
building 'pygraphviz._graphviz' extension
creating build/temp.macosx-10.5-x86_64-2.7
creating build/temp.macosx-10.5-x86_64-2.7/pygraphviz
gcc -fno-strict-aliasing -I/Users/sundong/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/sundong/anaconda/include/python2.7 -c pygraphviz/graphviz_wrap.c -o build/temp.macosx-10.5-x86_64-2.7/pygraphviz/graphviz_wrap.o
pygraphviz/graphviz_wrap.c:2954:10: fatal error: 'graphviz/cgraph.h' file not found
#include "graphviz/cgraph.h"
^
1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for pygraphviz
Failed to build pygraphviz
Installing collected packages: pygraphviz
Running setup.py install for pygraphviz
Complete output from command /Users/sundong/anaconda/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/p6/rjy4tf353bzfy7gsl5jn_yvc0000gn/T/pip-build-bLb4AR/pygraphviz/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/p6/rjy4tf353bzfy7gsl5jn_yvc0000gn/T/pip-qgosXm-record/install-record.txt --single-version-externally-managed --compile:
running install
Trying pkg-config
Failed to find pkg-config
Trying dotneato-config
Failed to find dotneato-config
Failed to find dotneato-config
Your Graphviz installation could not be found.
1) You don't have Graphviz installed:
Install Graphviz (http://graphviz.org)
2) Your Graphviz package might incomplete.
Install the binary development subpackage (e.g. libgraphviz-dev or similar.)
3) You are using Windows
There are no PyGraphviz binary packages for Windows but you might be
able to build it from this source. See
http://networkx.lanl.gov/pygraphviz/reference/faq.html
If you think your installation is correct you will need to manually
change the include_dirs and library_dirs variables in setup.py to
point to the correct locations of your graphviz installation.
The current setting of library_dirs and include_dirs is:
library_dirs=None
include_dirs=None
error: Error locating graphviz.
----------------------------------------
Command "/Users/sundong/anaconda/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/p6/rjy4tf353bzfy7gsl5jn_yvc0000gn/T/pip-build-bLb4AR/pygraphviz/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/p6/rjy4tf353bzfy7gsl5jn_yvc0000gn/T/pip-qgosXm-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/p6/rjy4tf353bzfy7gsl5jn_yvc0000gn/T/pip-build-bLb4AR/pygraphviz
brew install graphviz
then:
pip install --install-option="--include-path=/usr/local/include/" --install-option="--library-path=/usr/local/lib/" pygraphviz
Both path in bold should NOT contain "graphviz".
https://github.com/pygraphviz/pygraphviz/issues/100#issuecomment-237560404
Worked for me on OSX 10.14.1
Assuming that you've already installed graphviz software:
As described in this blog post use the following parameters whilst trying to run pip install pygraphviz
--install-option="--include-path=/usr/local/include/graphviz/" \
--install-option="--library-path=/usr/local/lib/graphviz"
So the final command would look like pip install pygraphviz --install-option="--include-path=/usr/local/include/graphviz/" --install-option="--library-path=/usr/local/lib/graphviz".
What this does is this explicitly specified where the libraries of the original program (graphviz) exist for the python extension to use. Unfortunately, this doesn't seem to get automatically recognized.
Worked on MacOS Sierra with Python 3.6
try the following (make sure to have anaconda-client installed and updated):
conda install --channel https://conda.anaconda.org/garylschultz pygraphviz
Graphviz can be installed via homebrew: brew install graphviz.
Then do:
cd /usr/local/Cellar/graphviz/VERSION/include/graphviz
mkdir graphviz
cp cgraph.h graphviz/
And finally:
pip install graphviz
Tested on Sierra and woks fine.

Can't Install mysql- for Python / Django (Windows)

I'm trying to download through pip the MySql-python connector as following, however im getting an error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
C:\Users\yschellekens.INTRANET\Desktop\Django project\general>pip install MySQL-
python
You are using pip version 7.1.0, however version 7.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.
Collecting MySQL-python
Using cached MySQL-python-1.2.5.zip
Building wheels for collected packages: MySQL-python
Running setup.py bdist_wheel for MySQL-python
Complete output from command C:\Python33\python.exe -c "import setuptools;__fi
le__='c:\\users\\yschel~1.int\\appdata\\local\\temp\\pip-build-wc92bo\\MySQL-pyt
hon\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file_
_, 'exec'))" bdist_wheel -d c:\users\yschel~1.int\appdata\local\temp\tmpc71e54pi
p-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.3
copying _mysql_exceptions.py -> build\lib.win32-3.3
creating build\lib.win32-3.3\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win32-3.3\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-3.3\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-3.3\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-3.3\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-3.3\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-3.3\MySQLdb
creating build\lib.win32-3.3\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win32-3.3\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win32-3.3\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.3\MySQLdb\constan
ts
copying MySQLdb\constants\ER.py -> build\lib.win32-3.3\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.3\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win32-3.3\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.3\MySQLdb\constants
running build_ext
building '_mysql' extension
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
----------------------------------------
Failed building wheel for MySQL-python
Failed to build MySQL-python
Installing collected packages: MySQL-python
Running setup.py install for MySQL-python
Complete output from command C:\Python33\python.exe -c "import setuptools, t
okenize;__file__='c:\\users\\yschel~1.int\\appdata\\local\\temp\\pip-build-wc92b
o\\MySQL-python\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__
).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\ys
chel~1.int\appdata\local\temp\pip-ckxp_c-record\install-record.txt --single-vers
ion-externally-managed --compile:
running install
running build
running build_py
running build_ext
building '_mysql' extension
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
----------------------------------------
Command "C:\Python33\python.exe -c "import setuptools, tokenize;__file__='c:\\us
ers\\yschel~1.int\\appdata\\local\\temp\\pip-build-wc92bo\\MySQL-python\\setup.p
y';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --record c:\users\yschel~1.int\appdata\local
\temp\pip-ckxp_c-record\install-record.txt --single-version-externally-managed -
-compile" failed with error code 1 in c:\users\yschel~1.int\appdata\local\temp\p
ip-build-wc92bo\MySQL-python
I found this wonderful question, which was very helpful:
Install mysql-python (Windows)
But im still running into issues, i know that i can download Visual Studio 2010 but i saw people who mention that its not necessary, and i prefer not to download it.
Here are my PYTHONPATH + PATH
PATH:
C:\Tools\OpenVPN\bin;C:\Python33\;C:\Program Files\Java\jdk1.7.0_15\bin;C:\Program Files\Java\jdk1.7.0_15\jre\bin\server;C:\Python33\Lib\site-packages;C:\Python33\Lib;C:\Python33\DLLs;C:\Python33\Lib\lib-tk;C:\Python33\Scripts;C:\Windows\System32;C:\Program Files\MySQL\MySQL Server 5.6\bin
PYTHONPATH
C:\Python33;C:\Python33\Lib\site-packages;C:\Python33\Lib;C:\Python33\DLLs;C:\Python33\Lib\lib-tk;C:\Python33\Scripts
Did i miss anything?
Any help in that would be great!
What you need is to have Microsoft Visual C++ 10.0 compiler (and as far as I remember version 10.0 doesn't necessarily mean Visual Studio 2010) installed on your system and vcvarsall.bat accessible from PATH environment variable.
However, it is usual for Windows to have enormous amount of blocking issues connected with compiling python extensions via pip (or it's just me?), so my usual workaround of the error you get is to google some Windows binary installers (mysql-python for 2.7 for instance) or .whl files. Both have python extensions compiled for a particular Python and architecture thus eliminating the need in having C or C++ compiler installed.

Error when installing Scrapy with pip on Mac

I run pip install Scrapy and everything seems to download fine, but installation ultimately fails.
Is there some sort of an issue with permissions? I'm a novice, so any help much appreciated!
Abridged terminal output:
...
running install_egg_info
running egg_info
writing requirements to Scrapy.egg-info/requires.txt
writing Scrapy.egg-info/PKG-INFO
writing top-level names to Scrapy.egg-info/top_level.txt
writing dependency_links to Scrapy.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'Scrapy.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/build'
writing manifest file 'Scrapy.egg-info/SOURCES.txt'
Copying Scrapy.egg-info to /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Scrapy-0.16.3-py2.7.egg-info
running install_scripts
copying build/scripts-2.7/scrapy -> /Library/Frameworks/Python.framework/Versions/2.7/bin
error: /Library/Frameworks/Python.framework/Versions/2.7/bin/scrapy: Permission denied
----------------------------------------
Command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;__file__='/Users/pavelfage/build/Scrapy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/x6/wf5kq24j109dnkhgjcs822ym0000gn/T/pip-QgV9nv-record/install-record.txt failed with error code 1
To write in /Library/Frameworks/* use sudo pip install scrapy
If doing using virtual environment, first activate the environment and then install
$ . /path/to/venv/bin/activate
$ pip install scrapy

Categories

Resources