[[Python3]]
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

python3 [2018/07/29 19:53]
dblume Raspbian needed libffi-dev for Python 3.7 for _ctypes
python3 [2018/07/30 18:01] (current)
dblume [Modules]
Line 17: Line 17:
 tar -xvf Python-3.7.0.tgz tar -xvf Python-3.7.0.tgz
 cd Python-3.7.0/ cd Python-3.7.0/
-./configure --prefix=/opt/python3 --enable-optimizations+./configure --prefix=/usr/local/bin/python3.7 --enable-optimizations
 make make
 sudo make install sudo make install
-# sudo ln -s /opt/python3/bin/python3 /usr/bin/python3+# sudo ln -s /usr/local/bin/python3.7/bin/python3 /usr/bin/python3
 </code> </code>
  
Line 43: Line 43:
 make -j4 make -j4
 sudo make install sudo make install
 +</code>
 +
 +===== Modules =====
 +
 +Sometimes I have trouble with pip3 (ImportError: cannot import name 'main' from 'pip'), so prefer to use "python 3 -m pip" instead.
 +
 +<code bash>
 +sudo python3 -m pip install --upgrade pip
 +sudo python3 -m pip install requests
 +python3 -m pip install --user --upgrade httpie
 +</code>
 +
 +===== Weird hack for impyla =====
 +
 +Refers to https://stackoverflow.com/questions/43918993/python-buildpack-fatal-error-sasl-sasl-h-no-such-file-or-directory
 +
 +<code bash>
 +sudo python3 -m pip install --no-deps impyla
 +sudo python3 -m pip install --no-deps git+https://github.com/snowch/thrift_sasl
 +# sudo python3 -m pip install thriftpy
 </code> </code>
python3.1532919185.txt.gz · Last modified: 2018/07/29 19:53 by dblume
 
Recent changes RSS feed Driven by DokuWiki