I installed python3 from the official website and then installed jupyter notebook. While trying to run jupyter notebook, I was getting a "command not found" error.
I found this github issue and followed the instructions to delete python3 and reinstall using Homebrew instead (I've used Homebrew before).
When trying python3 -m pip install --upgrade pip i get a "No module named pip" error. My /usr/local/bin/ file shows pip, pip2, pip2.7, pip3, pip3.6.
I have a feeling my pip is not associated with the python3 that I installed using Homebrew. How can I fix this?
This way is a pretty fool-proof way to install pip for a specific python interpreter, when you have a big mess of them on the machine:
$ curl https://bootstrap.pypa.io/get-pip.py > /tmp/get_pip.py
$ my_python_interpreter /tmp/get_pip.py
Then:
$ my_python_interpreter -m pip install some_dist
Related
pip install pypcap
i want to run the MITMf and it requires pycap to run
when i try to install it, this is the error it get, first i tried the
pip install -r requirements.txt
then i tried installing it manually with
pip install pypcap
this is the output i get...
https://pastebin.com/RWWXzdLf
these are my python versions..
┌──(root💀kali)-[/home/…/Desktop/Hacking/MITMf/MITMf]
└─# python3 --version 1 ⨯
Python 3.9.1+
┌──(root💀kali)-[/home/…/Desktop/Hacking/MITMf/MITMf]
└─# python --version
Python 2.7.18
Have you check the following?
Do you have pip/pip3 installed in your Kali?
Have you tried installing it via sudo?
Are you sure to use .txt file instead of .py extension?
I hope that I could help. Good luck troubleshooting!
I am attempting to use Anaconda and running into issues with packages installing in the wrong folders (because I have multiple versions of python installed, which cannot be removed). How do I correctly get new packages installing to the anaconda3 python version?
For example:
pip3 install praw <-- installs to python2.7 folder
$ python -m site --user-site
/home/king/.local/lib/python3.6/site-packages
$ python3 -m site --user-site
/home/king/.local/lib/python3.6/site-packages
$ conda install praw <----fails because cant find package
Tried the solution from here:
$ python3.6 -m pip install praw
PermissionError: [Errno 13] Permission denied: '/home/king/anaconda3/lib/python3.6/site-packages/update_checker.py'
$ sudo -H python3.6 -m pip install praw
sudo: python3.6: command not found
All my python directories
/home/king/anaconda3/lib/python3.6/site-packages
/usr/local/lib/python3.5/dist-packages/
/usr/local/lib/python2.7/dist-packages/
anaconda does not provide pip3, if anaconda is first in your path, use pip. Check with
which pip
To be sure, you are using the pip that corresponds to your python, use:
python -m pip install ...
Edit: Looks like you messed up file permissions of your anaconda install. Maybe by using sudo to install something.
To fix, you could do:
sudo chown -R king:king /home/king/anaconda3
and don't use sudo again to do stuff with the anaconda install in your home.
first of all, it's highly recommanded to install Anaconda to /opt in order to be used by all users (avoid permission problem)
Try to see witch python you use (Anaconda or Native Python) to see with pip you use:
which python
if you find that python you use is on /usr/local/lib that mean you use the native one, so tou have to export the Anaconda/bin to you environment variable to use Anaconda python. and then you can use pip to install your package:
pip install praw
I've been using Ubuntu 17.04 but my pip install is not working. Pip3 works fine and I've been getting by using python3 but I want to use volatility plugins with vol.py and I need python2 for that.
pip install just runs normally and installs everything fine but when I import it it says it's not installed. And yes I've tried using pip2, python -m pip, etc-- python -m pip just gives some error about no zlib when I've already installed it (zlib package thing). Help?
You can specify which version of python you want to use
Try this
python3.6 -m pip install <package>
or
python3 -m pip install <package>
So we currently use python 2.6 for production, and I just installed pip but couldn't get any output from cmd on windows 10. Then I tried with python -m pip ... then I got d:\Python26\python.exe: pip is a package and cannot be directly executed, it's quite annoying so how do I fix this problem?
pip is a standalone executable, not package. After using get-pip.py for installing pip, you should have pip executable in d:\Python26\. Go to that folder to check if pip is there:
cd d:\Python26\
pip freeze
Then you need to add pip to your PATH: https://superuser.com/a/949573
I'm on Ubuntu and I have python2.7, (it came pre-installed) python3.4, (used before today) and python3.5, which I upgraded to today, installed in parallel. They all work fine on their own.
However, I want to use pip to install some packages, and I can't figure out how to do this for my 3.5 installation because pip installs for 2.7 and pip3 installs python 3.4 packages.
For instance, I have asyncio installed on 3.4, but I can't import it from 3.5. When I do pip3 install aysncio, it tells me the requirement is already satisfied.
I'm a bit of a newbie, but I did some snooping around install directories and couldn't find anything and I've googled to no avail.
I suppose you can run pip through Python until this is sorted out. (https://docs.python.org/dev/installing/)
A quick googling seems to indicate that this is indeed a bug. Try this and report back:
python3.4 -m pip --version
python3.5 -m pip --version
If they report different versions then I guess you're good to go. Just run python3.5 -m pip install package instead of pip3 install package to install 3.5 packages.
Another way would be to setup a virtual environment:
$ python3.4 -m venv envdir
$ source envdir/bin/activate
$ pip --version
Obviously, this won't install the packages globally and you'll have to source venv/bin/activate every time you wan to make use of it.