Installing specific package versions with pip

前端 未结 11 615
借酒劲吻你
借酒劲吻你 2020-11-22 08:38

I\'m trying to install version 1.2.2 of the MySQL_python adaptor, using a fresh virtualenv created with the --no-site-packages option. The current version shown

11条回答
  •  长发绾君心
    2020-11-22 08:51

    Sometimes, the previously installed version is cached.

    ~$ pip install pillow==5.2.0
    

    It returns the followings:
    Requirement already satisfied: pillow==5.2.0 in /home/ubuntu/anaconda3/lib/python3.6/site-packages (5.2.0)

    We can use --no-cache-dir together with -I to overwrite this

    ~$ pip install --no-cache-dir -I pillow==5.2.0
    

提交回复
热议问题