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?
Related
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
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
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
I have some problems while installing scikit-learn on Fedora 23 using pip
pip install scikit-learn
Here's what I get
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-MPbvR0/scikit-learn/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-k_kxgh-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-MPbvR0/scikit-learn
What may the problem be?
There is a way to get around the problem. Download and install Anaconda which is Python + 195 packages including scikit-learn.
I can't install the python snappy's library in virtual environment. This is the error:
Command /usr/bin/python -c "import setuptools,
tokenize;__file__='/tmp/pip_build_sebastianbaskovich/python-snappy
/setup.py';exec(compile(getattr(tokenize, 'open',
open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-sW65K7-record/install-record.txt --single-
version-externally-managed --compile failed with error code 1 in
/tmp/pip_build_sebastianbaskovich/python-snappy
In order to install python-snappy you first need the snappy library (snappy-c.h ) on your computer for it to compile properly. Install Snappy library first and then try and install python-snappy and you should be good to go.