python3
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
python3 [2018/10/06 01:10] – [Debian based distros] dblume | python3 [2023/04/14 20:37] (current) – dblume | ||
---|---|---|---|
Line 29: | Line 29: | ||
For **OS X**, brew upgrading httpie seems to upgrade to the latest Python 3, so I didn't have to do stuff. | For **OS X**, brew upgrading httpie seems to upgrade to the latest Python 3, so I didn't have to do stuff. | ||
- | ===== Debian based distros ===== | + | ===== Debian based distros |
For Debian (eg., Rasbian) try [[http:// | For Debian (eg., Rasbian) try [[http:// | ||
Line 37: | Line 37: | ||
</ | </ | ||
- | On Raspbian Jessie | + | ==== (Aside) OpenSSL 1.0.1 issue in Raspbian ==== |
+ | |||
+ | On Raspbian Jessie | ||
< | < | ||
Line 57: | Line 59: | ||
< | < | ||
- | $ ssh -V | + | $ openssl version |
- | OpenSSH_6.7p1 Raspbian-5+deb8u7, | + | OpenSSL 1.0.1t |
</ | </ | ||
Line 65: | Line 67: | ||
<code bash> | <code bash> | ||
# Add the backport apt source. | # Add the backport apt source. | ||
- | echo " | + | echo " |
+ | | ||
sudo apt update | sudo apt update | ||
Line 79: | Line 82: | ||
</ | </ | ||
- | Then, back to Python3, on Raspbian, I put it in the default location: | + | **Update**: The following apt-cache policy command showed the old libssl was still installed. It's probably bad, but I [[https:// |
+ | |||
+ | < | ||
+ | sudo apt-cache policy libssl-dev | ||
+ | </ | ||
+ | |||
+ | ===== Debian based distros (Continued) ===== | ||
+ | |||
+ | Then, back to Python3, on Raspbian, I put it in the default location, /usr/local: | ||
<code bash> | <code bash> | ||
+ | screen | ||
cd Python-3.7.0/ | cd Python-3.7.0/ | ||
./configure --enable-optimizations | ./configure --enable-optimizations | ||
make -j4 | make -j4 | ||
sudo make install | sudo make install | ||
+ | [[ $TERM != " | ||
</ | </ | ||
===== Modules ===== | ===== Modules ===== | ||
- | Sometimes I have trouble with pip3 (ImportError: | + | Sometimes I have trouble with pip3 (ImportError: |
<code bash> | <code bash> | ||
Line 108: | Line 121: | ||
sudo python3 -m pip install --no-deps git+https:// | sudo python3 -m pip install --no-deps git+https:// | ||
# sudo python3 -m pip install thriftpy | # sudo python3 -m pip install thriftpy | ||
+ | </ | ||
+ | |||
+ | ===== MatPlotLib ===== | ||
+ | |||
+ | There' | ||
+ | |||
+ | <code python> | ||
+ | import matplotlib | ||
+ | matplotlib.use(' | ||
</ | </ |
python3.1538813441.txt.gz · Last modified: 2023/04/12 20:44 (external edit)