我已经使用命令
在我的ubuntu机器上安装了python,版本为18.0sudo apt-get install python-pip
它安装了两个版本的python
ubuntu@ubuntu-OptiPlex-960:~$ python --version
Python 2.7.15rc1
ubuntu@ubuntu-OptiPlex-960:~$ python
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
ubuntu@ubuntu-OptiPlex-960:~$ python3 -V
Python 3.6.5
我正在使用命令安装selenium:
$ sudo pip install selenium
它给出了错误:
The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not
owned by the current user and the cache has been disabled. Please check the
permissions and owner of that directory. If executing pip with sudo, you may
want sudo's -H flag.
The directory '/home/ubuntu/.cache/pip' or its parent directory is not owned
by the current user and caching wheels has been disabled. check the
permissions and owner of that directory. If executing pip with sudo, you may
want sudo's -H flag.
Collecting selenium
Could not find a version that satisfies the requirement selenium (from
versions: )
No matching distribution found for selenium
提前致谢。