So I've got some python code that requires I "import ping". I tried using pip t install it but for whatever reason that wasn't working so I just downloaded the zip. I extracted it and ran setup.py but I keep getting the error:
error: /usr/local/lib/python2.7/dist-packages/ping.py: Permission denied
How do I fix this?
Via pip
sudo pip install ping
Via Python (manual) what you need !
sudo python setup.py install
You Need Admin rights
Related
After I entered the command: pip install pandas
on the pycharm terminal, I got the following error:
-------------------------------------------------------------------------------------------------
ERROR: Could not install packages due to an OSError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\User\\A
ppData\\Local\\Temp\\pip-req-tracker-7q66q0yu\\6db4818fba87cd56fb7ea2ff3e7b500fdbaefe4fef5779e374622b60'
Consider using the `--user` option or check the permissions.
-------------------------------------------------------------------------------------------------
I would be grateful if I could get help in fixing this error.
You need to run the command prompt or terminal as an administrator. This will give you permission to install packages. And also you need to upgrade pip to the latest version - python -m pip install –upgrade pip in cmd or terminal.
And If this does not work for you then, you can try pip install --user pygame.
I got this from this post
I'm trying to install the spotdl package with Debian linux. However, after many attempts of trying to get the package installed, and reading over many articles on this issue, I keep getting this error:
I cannot find any fix for this.
Thanks for any help.
Try with the following commands hope it will work. You need to have Python 3.6.1 or above to install the package.
pip install -U spotdl
Or
sudo apt install ffmpeg
pip install spotdl
I am on my Kali Linux. When I run sudo python3 Storm-Breaker.py, I get an error
ModuleNotFoundError: No module named 'pyngrok'
But when I import pyngrok in an ordinary python file and then run it, it works out fine.
Please please help.
You shall install the package before using it.
Run the following command to install the package and its dependencies.
pip install pyngrok
You can try using the following command
sudo pip3 install -r requirements.txt
When I try to run !pip install tweepy it displays a warning like this.
WARNING: Failed to write executable - trying to use .deleteme logic
ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'c:\\python39\\Scripts\\chardetect.exe' -> 'c:\\python39\\Scripts\\chardetect.exe.deleteme'
How should I overcome this issue. Please help me out.
I faced the similar issue:
to solve:
python -m pip install -U pip --user
run the above command and try again.
this error occurs due insufficient OS permissions
if you are working in windows:
run command line as administrator and type:
py -m pip install pip-run
then install your package
py -m pip install tweepy
I am trying to make a Twitter app with my Pi but when I try the command
sudo pip install tweepy
I get greeted by the following error:
AttributeError: 'NoneType' object has no attribute 'skip_requirements_regex'
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/pi/build/tweepy
Any suggestions? This also happens if I try to install directly from GitHub
Someone on the Raspberry Pi forums figured out the problem. Apparently there is a problem installing some applications with pip v1.1, which is the version in the Raspbian repository. Updating pip with the following command did the trick.
sudo pip install -U pip
Someone had a similar question. Here is the link on github.
https://github.com/tweepy/tweepy/issues/441
If that doesn't help you can go on the link of the main page
https://github.com/tweepy/tweepy
and then click download zip on the right.
have you tried installing it from the source?
git clone https://github.com/tweepy/tweepy.git
cd tweepy
python setup.py install
I have tried "sudo pip install -U pip"
but still got errors but looking at documentation found better option.
easy_install tweepy
and it worked as expected.