ubuntu 18.04 run python3.7

Posted lvmxh

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu 18.04 run python3.7相关的知识,希望对你有一定的参考价值。

install

sudo apt install python3.7 python3-venv python3.7-venv
python3.7 -m venv py37-venv
. py37-venv/bin/activate
sudo apt install build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev libffi-dev

# run your commend
#  ...

deactivate # exit

In your project

. py37-venv/bin/activate
# cd your project path
sudo apt install build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev libffi-dev
 
pip3.7 install  wheel
pip3.7 install -r  requirements.txt
pip3.7 install -r test-requirements.txt
 
# run your testcase
python -m unittest run cyborg.tests.unit.objects.test_ext_arq_job.TestExtARQJobMixin

  

以上是关于ubuntu 18.04 run python3.7的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu18.04安装Python3.6.8

Ubuntu18.04 升级python3后 安装pip3 后报错

ubuntu18.04 安装python3.6 opencv3.8.4

kivy 和 python3 在 ubuntu 18.04 上不起作用

ubuntu18.04 + python3 安装pip3

Ubuntu 18.04 切换使用Python3