Installation error while installing scrapy [duplicate] - python

This question already has answers here:
Error while installing Scrapy: path not specified
(2 answers)
Closed 4 years ago.
My system is windows 8.1 and installed python 3.7.2. Now, whenever I try to install -> pip install scrapy.
It always shows me an error mention below:
error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.1\\lib'
----------------------------------------
Command "c:\users\user\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-5lpvl9q3\\Twisted\\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\Local\Temp\pip-record-5pmlq_y_\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\User\AppData\Local\Temp\pip-install-5lpvl9q3\Twisted\
Thanks for help!

Fist, you can try to upgrade setuptools and try again. (You did not specify is there problem only with Scrapy or with everything else you're trying to install?)
python -m pip install --upgrade pip setuptools wheel
My suggestion is to use virtual env or conda on windows.
Here's how:
https://doc.scrapy.org/en/latest/intro/install.html#windows

Related

pip install - running build_ext error: [WinError 2] The system cannot find the file specified

I'm trying to install the dialogflow package in Pycharm virtual environment using pip:
pip install dialogflow
and it stops at this error:
running build_ext
error: [WinError 2] The system cannot find the file specified
'Command "C:\Users\mclovine\PycharmProjects\sunshinveconv\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\mclovine\\AppData\\Local\\Temp\\pip-install-zotus0_t\\grpcio\\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\mclovine\AppData\Local\Temp\pip-record-ub03a865\install-record.txt --si
ngle-version-externally-managed --compile --install-headers C:\Users\mclovine\PycharmProjects\sunshinveconv\venv\include\site\python3.8\grpcio" failed with error code 1 in C:\Users\mclovine\AppData\Local\Temp\pip-instal
l-zotus0_t\grpcio\'
When I try the same installation in conda virtual environment, it works and there's no error.
I'm using: Windows64, Python 3.8.3, Visual C++ BuildTools 14.0
Any help would be appreciated, thank you
Downgrade to Python 3.7 works for me (ref: https://github.com/gunthercox/ChatterBot/issues/1699#issuecomment-680807921)

Error when installing turicreate [duplicate]

This question already has answers here:
pip install failing with: OSError: [Errno 13] Permission denied on directory
(9 answers)
Closed 5 years ago.
I'm trying to install a package called turicreate on my device. I want to use it in code written in python 2.7
I have both python 3.6 and python 2.7 on my device so I'm trying to use the command:
$ python2.7 -m pip install turicreate
and then I get this error:
Running setup.py install for prettytable ... error
Complete output from command /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/4d/3qphp3b56cjdhdqh3jcv994r0000gn/T/pip-build-Uya2Ub/prettytable/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/4d/3qphp3b56cjdhdqh3jcv994r0000gn/T/pip-3wU21B-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib
copying prettytable.py -> build/lib
running install_lib
copying build/lib/prettytable.py -> /Library/Python/2.7/site-packages
error: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/prettytable.py'
----------------------------------------
Command "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/4d/3qphp3b56cjdhdqh3jcv994r0000gn/T/pip-build-Uya2Ub/prettytable/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/4d/3qphp3b56cjdhdqh3jcv994r0000gn/T/pip-3wU21B-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/4d/3qphp3b56cjdhdqh3jcv994r0000gn/T/pip-build-Uya2Ub/prettytable/
Could someone please propose a solution to this issue?
Thanks,
Abe
PS: I'm on Mac and doing this in terminal.
This error means that you do not have administrator permissions to write in the dictionary. In order to gain this permission you need to use the sudo prefix.
sudo python2.7 -m pip install turicreate

not able to install numpy in ubuntu 14.04 [duplicate]

This question already has answers here:
how can I fix permission denied error while trying to install pyrebase
(2 answers)
Closed 5 years ago.
error: could not create '/usr/local/lib/python2.7/dist-packages/numpy': Permission denied
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip_build_mark/numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-TKmHYa-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_mark/numpy
Try running with super-user priviledges (via sudo or by logging in as root) or better still install in a virtual environment

Scrapy Installation throwing error

While installing Scrapy in Windows 10 through command prompt I get this message at the end. Please tell me what could have possibly gone wrong or how do I overcome it.
[WinError 2] The system cannot find the file specified
----------------------------------------
Command "c:\users\sarwar\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Sarwar\\AppData\\Local\\Temp\\pip-build-gigbscvh\\Twisted\\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\Sarwar\AppData\Local\Temp\pip-xo9y3e03-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Sarwar\AppData\Local\Temp\pip-build-gigbscvh\Twisted\
There are some issues with pip installation of scrapy in windows platform. I would suggest you to use Anaconda to install scrapy and use it. Anaconda comes with may predefined packages which are required by many other packages. Anaconda has always worked like a charm to me while working on python.

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

Categories

Resources