There is some package which is only supported on python27.Then I run pip install -r requirement.txt
where in the requirement file it contains some_package>=xx
,in such requirement, pip will install latest package which may not support python27.So how to address this problem?
I am working on WSL ubuntu 18.04, pip
is from python27
Find a version number that supports python 2.7 and change the line some_package>=xx
to some_package==xx
, where xx is the version number that supports 2.7.
==
will pin the package to that specific version.
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.