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:
python3 setup.py install
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.
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:
# download and install setuptools curl -O https://bootstrap.pypa.io/ez_setup.py python3 ez_setup.py # download and install pip curl -O https://bootstrap.pypa.io/get-pip.py python3 get-pip.py
Which solved my question perfectly. After adding the following for my own:
cd /usr/local/bin ln -s ../../../Library/Frameworks/Python.framework/Versions/3.3/bin/pip pip
So that I could run pip directly, I was able to:
# use pip to install pip install pyserial
# Don"t want it? pip uninstall pyserial
Install Python3 on mac
1. brew install python3 2. curl https://bootstrap.pypa.io/get-pip.py | python3 3. python3
pip3 to install modules
1. pip3 install ipython 2. python3 -m IPython
Coding for Kids: Python - Learn to Code with 50 Awesome Games and Activities. Learning to code isn't as difficult as it sounds, you just have to get started! Coding for Kids: Python gets kids start...
If you can program, you are ready to grapple with Bayesian statistics. In this book, you'll learn how to solve statistical problems using Python code instead of math formulas, using discrete probabili...
This book is not just about learning the code; even if you learn to program. If you want to program professionally, learning to code is not enough; For this reason, in addition to helping you program,...
We live in an age of so-called Big Data. We hear terms like data scientist, and there is much talk about analytics and the mining of large amounts of corporate data for tidbits of business value. Ther...