pip not installing scrapy after previous attempts on windows - python

I tried to install scrapy and other modules using pip and they failed to do so ,it using cached files from previous installations that i tried to install but the failed.How do i resolve this problem please. I'm running windows on my machine

The cached files are broken. Try to disable cache by --no-cache-dir

Related

OS error permission denied attempting to install opencv-python on linux

I am using a mixed nodejs python app in replit(I know I know, please try to avoid hating on replit too much, I need to use it), but I am failing to install opencv-python due to the following error:
pip3 install opencv-python
Collecting opencv-python
Using cached opencv_python-4.7.0.68-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Collecting numpy>=1.17.0
Using cached numpy-1.24.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
Installing collected packages: numpy, opencv-python
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/nix/store/h4h5rxs0hzpzvz37yrwv1k2na1acgzww-python3-3.9.15/lib/python3.9/site-packages/numpy.libs'
Consider using the `--user` option or check the permissions.
What I have attempted:
"chmod 755 [the python file].py"
"pip install --user opencv-python"
using both pip and pip3
My python version is:
3.9.15
I have a package.json and a yarn-lock only, from the nodejs app, so I suspect maybe python cant add stuff to those files? Though that doesnt seem at all related to the error so probably not.
Repl.it runs on linux OS.
Sudo is also not a viable command on replit, nor is cmake. Replit issues.
I just tried using a virtual environment, I had no success. After installing opencv on virtual environment, when I try to use import cv2, I get "no module named cv2"

Python, pip install stuck on collecting "module_name"

Using freshly installed python 3.5.2 on windows 10, trying to install libraries via cmd, gives such result:
C:\Python35>pip install theano
Collecting theano
C:\Python35>pip install numpy
Collecting numpy
C:\Python35>pip list
pip (8.1.1)
setuptools (20.10.1)
C:\Python35>
The question is simple, how to make pip to install?
About trial and error. I did try to find solution, yes, and here is what does not work:
Using --no-cache-dir
pip install numpy-1.16.1-cp37-cp37m-win_amd64.whl same for Theano
python -m pip install and every special combination of parameters like pip3 -vvv and so on.
manually deleted the contents of the cache directory
ran as administrator, launched cmd from python folder
reinstalled python, restarted pc, have internet connection

Q: Command Line says "Failed to created process" when I try to pip install a package

5 and having no problems but I'm on windows 10 and I read online that I can't edit the system variables to add to the path to run programs from command line easily. I decided to uninstall python 3.5 and install python 3.8.2, which is the latest version, so that I could click on the “add to path” option.
The install went okays, but when I tried to go to the command prompt and install third party packages using pip, the command prompt kept saying "failed to create process"
I tried repairing the installations, trying different versions but the same thing kept happening.
Is there a fix for this? Help...
Thanks
C:\\WINDOWS\\system32>pip install pyperclip
failed to create process.
C:\\WINDOWS\\system32>
You will need to install the 64 bit python 3.8 dev module on the microsoft store, as the install from python webpage was most likely 32bit.
here is the link: https://www.microsoft.com/store/productId/9MSSZTT1N39L
C:\Users\Ben Woo>pip install pyperclip
Collecting pyperclip
Downloading https://files.pythonhosted.org/packages/f6/5b/55866e1cde0f86f5eec59dab5de8a66628cb0d53da74b8dbc15ad8dabda3/pyperclip-1.8.0.tar.gz
Installing collected packages: pyperclip
Running setup.py install for pyperclip ... done
Successfully installed pyperclip-1.8.0
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Users\Ben Woo>

Does pipenv download packages everytime or does it use cached packages like pip?

If we try to install a package via pip, it uses the cached packages that we have downloaded before. Does pipenv do the same or does it download the packages every time we do pipenv install etc. ?
It just runs pip, so it uses the pip cache.

Command not found after installing successfully via pip

I just downloaded youtube-dl via pip as follows:
sukhvir#SN:~$ sudo pip install youtube-dl
Downloading/unpacking youtube-dl
Downloading youtube_dl-2015.06.25-py2.py3-none-any.whl (965kB): 965kB downloaded
Installing collected packages: youtube-dl
Successfully installed youtube-dl
Cleaning up...
then when i try to run it, the following error shows up:
sukhvir#SN:~$ youtube-dl https://www.youtube.com/watch?v=QcIy9NiNbmo
-bash: youtube-dl: command not found
Can you please help as to why this is happening and how can i rectify this issue ?
I know it is a bit old, but I ran in the same problem.
The solution is simple: you installed it with 'sudo' rights,
so if you run it with sudo youtube-dl will start without problem (as module).
To avoid this, you could install pip install --user youtube-dl

Categories

Resources