Installing Scipy for Windows - python

I am trying to install Scipy on my computer. I did it by using the command pip install Scipy. (pip & numpy are up-to-date and I am using Python 3.6) I also tried it with Pycharm, but it didn't worked either.
I always do get this Error:
Command
"c:\users***\appdata\local\programs\python\python36\python.exe -u -c
"import setuptools,
tokenize;file='C:\Users\***\AppData\Local\Temp\pip-build-x3s21920\scipy\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***\AppData\Local\Temp\pip-gr9ppj_q-record\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in C:\Users***\AppData\Local\Temp\pip-build-x3s21920\scipy\
Does anyone has an idea of what I can do?

Try to install it from the following binaries
http://www.lfd.uci.edu/~gohlke/pythonlibs/
These are unofficial precompiled binaries

Related

Installing pybluez using pip3

i am trying to install pybluez package using pip3. but i always get the following error, when I write to terminal "pip3 install pybluez"
Command "/usr/local/opt/python3/bin/python3.6 -u -c "import setuptools, tokenize;file='/private/var/folders/_r/vshyh8x51h59xl0nks7jtz280000gn/T/pip-build-2gek1vzy/pybluez/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/_r/vshyh8x51h59xl0nks7jtz280000gn/T/pip-jiy18qdr-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/_r/vshyh8x51h59xl0nks7jtz280000gn/T/pip-build-2gek1vzy/pybluez/
So far I have only found that upgrading the 'setuptools' might help, but it did not. I have also installed xcode to my mac. So does anyone have any suggestions ?
Thanks in advance!
In the Ubuntu system, you might want to try using:
sudo apt-get install libbluetoothdev

Error trying to install seaborn through cmd without using Anaconda

I have been trying to install seaborn through cmd without using Anaconda with the following command : pip install seaborn. I run this command in the cmd in the directory C:\Python27\Scripts and i get this error :
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\
\users\\user\\appdata\\local\\temp\\pip-build-ira6iy\\scipy\\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\user\appdata\l
ocal\temp\pip-wzz50c-record\install-record.txt --single-version-externally-manag
ed --compile" failed with error code 1 in c:\users\user\appdata\local\temp\pip-b
uild-ira6iy\scipy\
Any help would be appreciated!
Download the wheel here and type pip install seaborn‑0.7.1‑py2.py3‑none‑any.whl it should be easier for you search for it here: http://www.lfd.uci.edu/~gohlke/pythonlibs/
Although as cryptic as the error was did you install SciPy first? That's all I can gather as possibly missing pip install scipy

can't install mysql-connector on Python 3.5.3 with pip3

I have successfully installed mysql-connector using 'pip install mysql-connector', however it installs to the Mac OSX standard version of Python (2.7).
I need it installed to my latest version of Python (3.5.3).
When I use 'pip3 install mysql-connector' or 'pip3 install --allow-external mysql-connector mysql-connector' I get the following errors:
Error 1:
Failed building wheel for mysql-connector
Error 2:
Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/ch/vzgxn0n119zggbgnb0_vg5400000gn/T/pip-build-po0zonwm/mysql-connector/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/ch/vzgxn0n119zggbgnb0_vg5400000gn/T/pip-q6b3vmy3-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/ch/vzgxn0n119zggbgnb0_vg5400000gn/T/pip-build-po0zonwm/mysql-connector/
Does anyone know how to resolve this problem? I don't want to have to switch back to Python 2.7.
Thanks.
This will do the thing:
pip3 install mysql-connector-python

pip install numpy and scipy on windows 10

I have installed python to create a deep neural network on Windows 10 to 64-bit. I installed the version 3.5 and after the version 2.7. In any case, I could not install numpy and SciPy with the pip command. In fact, I will open the command prompt as administrator, launch the command "pip install numpy" and it print:
Command "C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\claud\\appdata\\local\\temp\\pip-build-93rn_o\\numpy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\claud\appdata\local\temp\pip-lw65ht-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\claud\appdata\local\temp\pip-build-93rn_o\numpy
I also downloaded the installer of numpy and scipy, but nothing yet. I also tried to install Anaconda, but I can not find any way to install numpy and scipy. What should I do?

Fail to install objccheckstyle using pip in Mac OS X

I'm trying to install objccheckstyle with this command:
sudo pip install objccheckstyle
But it fails after it says
Running setup.py install for lxml
and I get this error:
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-DsaKIL/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CFc6EG-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-DsaKIL/lxml
I also tried sudo pip install lxml, but it looks like it fails when tries to import libxml:
#include "libxml/xmlversion.h"
I don't find libxml with pip install. What could I be missing?
Thanks
Updating to the latest Xcode's command line tools solved the problem.

Categories

Resources