我需要在Rasbian(Debian for Raspberry Pi)上安装Python 3.5+。目前只支持3.4版本。因为我想编译源代码,我必须安装:如何在Raspbian Jessie上安装Python 3.5
sudo apt-get install -y python3 python-empy python3-dev python3-empy python3-nose python3-pip python3-setuptools python3-vcstool pydocstyle pyflakes python3-coverage python3-mock python3-pep8
但我认为,apt-get
会比安装这些包多,例如libpython3-dev
。
我已经安装python3
从https://www.python.org/downloads/但我认为,这是不完整的。
你能给我一些建议,哪种方式是最好的得到这个?
类似的问题发布在这里Install Python 3.5 with pip on Debian 8但这个解决方案似乎不能在arm64上工作。
编辑:
关于向帕德里克坎宁安的评论:第一步我以前做过。第二个结果到这一点:
$ sudo python3.5 get-pip.py
Traceback (most recent call last):
File "get-pip.py", line 19177, in <module>
main()
File "get-pip.py", line 194, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
import pip
File "/tmp/tmpoe3rjlw3/pip.zip/pip/__init__.py", line 16, in <module>
File "/tmp/tmpoe3rjlw3/pip.zip/pip/vcs/subversion.py", line 9, in <module>
File "/tmp/tmpoe3rjlw3/pip.zip/pip/index.py", line 30, in <module>
File "/tmp/tmpoe3rjlw3/pip.zip/pip/wheel.py", line 39, in <module>
File "/tmp/tmpoe3rjlw3/pip.zip/pip/_vendor/distlib/scripts.py", line 14, in <module>
File "/tmp/tmpoe3rjlw3/pip.zip/pip/_vendor/distlib/compat.py", line 66, in <module>
ImportError: cannot import name 'HTTPSHandler'
http://bohdan-danishevsky.blogspot.ie/2015/10/building-python-35-on-raspberry-pi-2.html –
考虑张贴在http://树莓派。 stackexchange.com/对于这样的问题。 –
你需要安装libssl头文件,sudo apt-get install libssl-dev并重新编译python3 –