預設Python為3.10,若需要切換到Python 3.6下並安裝套件可直接在cmd下指定pip即可
1 2 3 4 5 6 7 8 9 |
$ py -3.6 -m pip install fake_useragent Collecting fake_useragent Downloading fake_useragent-1.4.0-py3-none-any.whl (15 kB) Requirement already satisfied: importlib-metadata~=4.0 in c:\users\kent_zheng\appdata\local\programs\python\python36\lib\site-packages (from fake_useragent) (4.8.3) Requirement already satisfied: importlib-resources>=5.0 in c:\users\kent_zheng\appdata\local\programs\python\python36\lib\site-packages (from fake_useragent) (5.4.0) Requirement already satisfied: zipp>=0.5 in c:\users\kent_zheng\appdata\local\programs\python\python36\lib\site-packages (from importlib-metadata~=4.0->fake_useragent) (3.6.0) Requirement already satisfied: typing-extensions>=3.6.4 in c:\users\kent_zheng\appdata\local\programs\python\python36\lib\site-packages (from importlib-metadata~=4.0->fake_useragent) (4.0.1) Installing collected packages: fake-useragent Successfully installed fake-useragent-1.4.0 |