简体   繁体   中英

How to configure python 3.7 on Ubuntu?

I followed this tutorial ( http://ubuntuhandbook.org/index.php/2019/02/install-python-3-7-ubuntu-18-04/ ) to install python 3.7 on Ubuntu, why I cannot find the python3.7m folder in the path in /usr/include/?

It only contains the python3.6m folder in /usr/include/, which is a default python3.6 on Ubuntu 18.04.

I think I successfully installed the python 3.7, because there is a python 3.7 folder in /usr/lib/

You can use which command to find where python is installed

which python3.7

It will be in /usr/bin/python3.7m

The /usr/include/ folder contains the header files associated with the python development package. To get that you would have to install it first

sudo apt-get install python3.7-dev

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