[英]Python 3.5.2 Installation of Cherrypy with apt
i developed a small web APP with CherryPy for Python. 我使用CherryPy为Python开发了一个小型Web应用程序。 I want to run this on a production Server with ubuntu 16.04. 我想在带有ubuntu 16.04的生产服务器上运行它。 My Sysadmin tells me that I shall not use pip or github repository, because of ... something wrong with using anything but apt ... he says. 我的系统管理员告诉我,我不会使用pip或github存储库,因为...除了使用apt之外,其他都有些问题...他说。
Is there a way of getting a recent cherrypy for python3 with apt ? 有没有办法用apt为python3获取最新的信息?
Its absolutly fine instaling cherrypy on Ubuntu. 在Ubuntu上绝对出色地安装了Cherrypy。 Here what I have done on my server: 这是我在服务器上完成的操作:
First Install pip
首先安装pip
sudo apt-get install python-pip
OR 要么
sudo apt install python-pip
OR for Python3 (try apt or apt-get) 或适用于Python3(尝试apt或apt-get)
sudo apt install python3-pip
After installing pip
, Install cherrypy
安装pip
,安装cherrypy
pip install cherrypy
Make sure you have installed python and based on the python version install pip. 确保已安装python并基于python版本安装pip。 After installing pip, everything will be fine. 安装pip后,一切都会好起来。 This works for me on my Ubuntu servers. 这对我在Ubuntu服务器上有效。
The solution on Ubuntu 16.04 with python3 (Python 3.5.2): 在Ubuntu 16.04上使用python3(Python 3.5.2)的解决方案:
sudo apt-get install python3-venv 须藤apt-get install python3-venv
mkdir environment mkdir环境
python3 -m venv environment python3 -m venv环境
cd environment/bin cd环境/ bin
source activate 源激活
apt install python3-pip apt安装python3-pip
pip3 install cherrypy pip3安装cherrypy
python3 ./my_python_script.py python3 ./my_python_script.py
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.