Home > OS >  At the same time installed python2 and python3, how to set the default version of the idle
At the same time installed python2 and python3, how to set the default version of the idle

Time:09-19

Computer system: Linux (Ubuntu 18.04)
Question: how is installed python2 and python3 at the same time, set the default version of the idle?
I installed the numpy, etc, for example, under the python2 can be referenced, but not in python3,


Idle run directly open is



I just want to in this can also use numpy plug-ins, such as how to set, a little bit confused, bosses give directions,

CodePudding user response:

Try using pip3 hold?

CodePudding user response:

refer to the original poster, one sand one bliss -- -- -- -- -- reply:
computer system: Linux (Ubuntu 18.04)
Question: how is installed python2 and python3 at the same time, set the default version of the idle?
I installed the numpy, etc, for example, under the python2 can be referenced, but not in python3,


Idle run directly open is



I just want to in this can also use numpy plug-ins, such as how to set, a bit confused, heavyweight directions of
,

Below is very simple,/usr/bin is the storage directory command, is in the bin directory, I may write directory is wrong, if you change under usr,
1. Under the bin directory python2, 3, and so on command, the default command is generally directly write python can find a python program, you modify the soft connection, if you want to default python3, you will get 3 a soft connection is ok,
2. Soft connection command ln -s python3 python, if you want to change python2, you modify the command
  • Related