Error Installing SciPy - python

I have a windows computer and I tried installing SciPy in the Command Prompt using pip. "Pip install SciPy" this worked for other functions that I have installed; however, for this one it gave me an error. Any help would be great
Below is the Error Code:
Command
"c:\users\wdley\appdata\local\programs\python\python36-32\python.exe
-u -c "import setuptools, tokenize;file='C:\Users\wdley\AppData\Local\Temp\pip-build-c0h_k6mh\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\wdley\AppData\Local\Temp\pip-0i8tdreh-record\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in C:\Users\wdley\AppData\Local\Temp\pip-build-c0h_k6mh\SciPY\

Related

Can't install dlib

Hi I'm trying to install dlib in VSCode, with pip install dlib, but it gave me this error. Wondering if anyone can help
----------------------------------------
Command "c:\users\admin\documents\python\pyai3.6\scripts\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Admin\AppData\Local\Temp\pip-install-j42ksv_7\dlib\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\Admin\AppData\Local\Temp\pip-record-y1xi59yt\install-record.txt --single-version-externally-managed --compile
--install-headers c:\users\admin\documents\python\pyai3.6\include\site\python3.6\dlib" failed with error code 1 in C:\Users\Admin\AppData\Local\Temp\pip-install-j42ksv_7\dlib\
I didn't realize I installed the 32-bit version of python instead of 64-bit. I just need to download the 64-bit version and run that.

Error connecting Python with MySQL

I received a python project and I'm having trouble running its requirements, particularly anything to do with MySQL. Whenever I run pip install mysqlclient, I get 13 warnings and this error in red.
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-eBsQYy/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 /tmp/pip-sxHiel-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-eBsQYy/mysqlclient/
When I run pip install mysql-python I get 14 warning with a similar error in red.
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-qW79lT/mysql-python/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-13maVa-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-qW79lT/mysql-python/
Any ideas?
Try to install “pymysql”. I got the warning as well trying to install MySQL for Python in Python 3. After doing some research, pymysql seems to be what needs to be installed moving forward. Pip install pymysql.

I am not able to install peewee using pycharm terminal. I am using this 'pip install peewee' but can't import the library

Command "C:\Users\asus\Anaconda2\python.exe -u -c "import setuptools, tokenize;file='c:\users\asus\appdata\local\temp\pip-build-54ytkq\peewee\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\asus\appd
ata\local\temp\pip-q5dadg-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\asus\appdata\local\temp\pip-
build-54ytkq\peewee\
It solved actually because microsoft visual c++ for python needs to be installed in my computer
after inatlling that it worked properly

pip install python-twitter Error

After making sure that pip is installed, I tried installing the twitter package using pip install python-twitter in the terminal but i get this error:
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/d1/49j6jy0d7hd_5cb6__cqwzhw0000gn/T/pip-build-5dzoDc/oauthlib/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/d1/49j6jy0d7hd_5cb6__cqwzhw0000gn/T/pip-GuXf_v-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/d1/49j6jy0d7hd_5cb6__cqwzhw0000gn/T/pip-build-5dzoDc/oauthlib/
It's worth noting I have Python 3.6 installed on a Mac, apart from the default 2.7.
The code also ends with this "error: could not create '/Library/Python/2.7/site-packages/oauthlib': Permission denied"

Why I get error from pip installing getch?

I'm doing a small file checker, and I need to do a (character pressed?) command. So I used getch. I get this error when trying to pip install it:
Command "c:\python27\python.exe -c "import setuptools, tokenize;__file__='c:\\us
ers\\manolo\\appdata\\local\\temp\\pip-build-ehxrw3\\getch\\setup.py';exec(compi
le(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __fil
e__, 'exec'))" install --record c:\users\manolo\appdata\local\temp\pip-flekfr-re
cord\install-record.txt --single-version-externally-managed --compile" failed wi
th error code 1 in c:\users\manolo\appdata\local\temp\pip-build-ehxrw3\getch
Can someone say to me how to fix this?
Also, I have python 2.7 running on win32, windows 7.
You can change getch for msvcrt, and it's pre-installed on Windows.

Categories