During the following command
pip install scipy
I get the following error
Command "c:\users\yosief\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;file_
_='C:\Users\yosief\AppData\Local\Temp\pip-build-eh0en8qk\scipy\setup.py';f=getattr(tokenize, 'open', open)(__fil
e);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\yosi
ef\AppData\Local\Temp\pip-v1ufkvhy-record\install-record.txt --single-version-externally-managed --compile" failed with
error code 1 in C:\Users\yosief\AppData\Local\Temp\pip-build-eh0en8qk\scipy\
Is anybody getting this error in piping scipy?
My suggestion is to use Anaconda which will handle your configuration issues.
It does install scipy and many useful packages on default while installation.
If does not do so..
-Just to go to the environment tab from Anaconda Navigator.
-Search your required package.
-It will fetch all dependent packages and then apply your changes.
Hope this helps..
Related
I am running Windows 10 and Python 3.6.3 . I am trying to install flask-mysqldb
using
pip install flask-mysqldb.
It fails with the following:
Command "c:\users...\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\..~1\AppData\Local\Temp\pip-install-5lp__7r6\mysqlclient\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...~1\AppData\Local\Temp\pip-record-zvpyshav\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users...~1\AppData\Local\Temp\pip-install-5lp__7r6\mysqlclient\
I have tried to install the build tools for Visual Studio, but this doesn't seem to help.
Any help or direction would be appreciated.
Thank you.
On windows computers, mysql connector is a better alternative.
Install it using:
pip install mysql-connector
I hope that solves your problem.
I am trying to migrate to Cloud Endpoints Frameworks 2.0 for App Engine from v1 in Python
When I pip install pip install -t lib google-endpoints --ignore-installed, I get an error
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-blaNgj/pycrypto/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-E6OxwC-record/install-record.txt --single-version-externally-managed --compile --home=/tmp/tmp_5iRxU" failed with error code 1 in /private/tmp/pip-build-blaNgj/pycrypto
How to fix this?
I have also tried sudo pip install -t lib google-endpoints --ignore-installed, but it didn't help
It is very hard to read the error message you pasted, since it's all on one line, but I think the issue you're having may be due to being on a Mac and not having either XCode or the XCode command line tools installed.
Try running 'gcc' at the command line and seeing if it says you need to install something.
I tried running pip install RPIO and found that in the process of installation, the following error occurs.
Command "c:\python27\python.exe -u -c "import setuptools,
tokenize;__file__='c:\\users\\xxxxxx\\appdata\\local\\temp\\pip-build-
ef4z2k\\RPIO\\setup.py';exec(compile(getattr(tokenize, 'open', open)
(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record
c:\users\xxxxxx\appdata\local\temp\pip-3_ddbu-record\install-record.txt --
single-version-externally-managed --compile" failed with error code 1 in
c:\users\xxxxxx\appdata\local\temp\pip-build-ef4z2k\RPIO\
Most modules get installed without any such issue. I installed plotly and scipy modules right before these, and no issues were faced there. Any idea where I might be going wrong?
I tried to install gensim for word2vec project and it stuck at the point like this:
----------------------------------------
Rolling back uninstall of scipy
Command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;__file__='/var/folders/6t/wqrgwp2s5zv5tnyz3rh85mvh0000gn/T/pip-build/scipy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/6t/wqrgwp2s5zv5tnyz3rh85mvh0000gn/T/pip-IDV4D9-record/install-record.txt --single-version-externally-managed failed with error code 1 in /var/folders/6t/wqrgwp2s5zv5tnyz3rh85mvh0000gn/T/pip-build/scipy
Storing complete log in /Users/Myname/.pip/pip.log
And I did some research I realize it's sth wrong with the scipy. I tried to upgrade it (since I've installed long time ago) and it repetitively show this error. I tried "sudo" and install libblas-dev but still show this error.
----------------------------------------
Rolling back uninstall of scipy
Command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;__file__='/tmp/pip-build/scipy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7Z45Gz-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build/scipy
Storing complete log in /Users/MyName/.pip/pip.log
I guess it's the same core problem essentially and I stuck here for long time.
Could someone help me please?
I am new to scrapy and i tried installing scrapy on mac using this command
sudo pip install scrapy
and i got this error:
Command "/usr/local/opt/python/bin/python2.7 -c "import setuptools,
tokenize;file='/private/tmp/pip-build-lpJzV8/lxml/setup.py';exec(compile(getattr(tokenize,
'open', open)(file).read().replace('\r\n', '\n'), file,
'exec'))" install --record /tmp/pip-H3llSf-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-lpJzV8/lxml
Can someone help?
Dont know if you have command line tools installed as #birryree suggested. If not, you could fire up the terminal (type terminal in spotlight) and type xcode-select --install. Then run pip again. By the way, I tried installing just now and it installs fine.