简体   繁体   中英

how to install tornado for python of different version

I'm using python on my CentOS7 server.
By default, there are python, python2, python2.7.

Then, I do yum install tornado . For now everything works fine.

Now I need to use python3.5 with tornado.

I've downloaded and installed python3.5 with its source code. But when I python3.5 server.py , I get an error:

no module named 'tornado'

I've also tried python3.5 -m pip install tornado but I get an error:

no module named pip

First install pip with ensurepip :

python3.5 -m ensurepip

Then:

python3.5 -m pip install tornado

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM