Pip is included with Python 3.4 releases; for earlier releases, follow the pip install instructions. Among the packages available through PyPI are some that are specifically for OS X environments. Among these are: pyobjc which provides a bridge between Python and Objective-C, allowing you to write full-featured native Cocoa applications in pure. If you installed Python3.8 using apt, the pip documentation advises against using the get-pip.py script. Be cautious if you are using a Python install that is managed by your operating system or another package manager. Get-pip.py does not coordinate with those tools, and may leave your system in an inconsistent state. Mar 28, 2018 If it launched a python shell as expected, press CTRL+D to exit the shell. If python3 is not installed, the shell will not launch and it will instead report-bash: python3: command not found. If you don’t yet have python3, you can download a Mac OS installer for python 3.6.5 by clicking here. Ensure Pip3 is Available.
Question or problem about Python programming:
OS X (Mavericks) has Python 2.7 stock installed. But I do all my own personal Python stuff with 3.3. I just flushed my 3.3.2 install and installed the new 3.3.3. So I need to install pyserial again. I can do it the way I’ve done it before, which is:
But I’d like to do like the cool kids do, and just do something like pip3 install pyserial. But it’s not clear how I get to that point. And just that point. Not interested (unless I have to be) in virtualenv yet.
How to solve the problem:
Solution 1:
UPDATE: This is no longer necessary with Python3.4. It installs pip3 as part of the stock install.
I ended up posting this same question on the python mailing list, and got the following answer:
Pip Install To Python 2.7
Which solved my question perfectly. After adding the following for my own:
So that I could run pip directly, I was able to:
or:
Solution 2:
I had to go through this process myself and chose a different way that I think is better in the long run.
I installed homebrew
then:
The last step gives you some warnings and errors that you have to resolve. One of those will be to download and install the Mac OS X command-line tools.
then:
This gave me python3
and pip3
in my path.
Solution 3:
Install Python3 on mac
Os X Pip For Python 3 6
Use pip3
to install modules
Os X Pip For Python 32
🙂
Solution 4:
Plus:
when you install requests with python3, the command is:
not
Solution 5:
Here is my simple solution:
If you have python2 and python3 both installed in your system, the pip upgrade will point to python2 by default. Hence, we must specify the version of python(python3) and use the below command:
This command will uninstall the previously installed pip and install the new version- upgrading your pip.
This will save memory and declutter your system.