简体   繁体   English

Python 3.9 pip 安装

[英]Python 3.9 pip install

I recently downloaded and installed Python 3.9 because I wanted to run a website scraper to more easily organize recipes found online.我最近下载并安装了 Python 3.9,因为我想运行一个网站抓取工具来更轻松地组织在线找到的食谱。 However, when I try to run pip it says it doesn't recognize it (and I have tried editing the path but every video or site I find has different information).但是,当我尝试运行pip它说它无法识别它(我尝试编辑路径,但我发现的每个视频或网站都有不同的信息)。

Even a basic check of my Python version comes back with no results:即使对我的 Python 版本进行基本检查也没有结果:

在此处输入图片说明

I have uninstalled and reinstalled Python 3.9 but to no avail.我已经卸载并重新安装了 Python 3.9,但无济于事。 There is also no scripts file within my python file and my computer doesn't even seem to recognise that Python is installed.我的 python 文件中也没有脚本文件,我的计算机似乎甚至无法识别安装了 Python。

I have a very basic question that I am sure will be easy for someone to solve;我有一个非常基本的问题,我相信这个问题很容易解决。 I recently downloaded and installed Python 3.9 because I wanted to run a website scraper to more easily organise recipes found online.我最近下载并安装了Python 3.9,因为我想运行一个网站刮板,以便更轻松地组织在线找到的食谱。 However, when I try to run pip it says it doesn't recognise it (and I have tried editing the pathway, but every video or site I find has different information).但是,当我尝试运行pip它说它无法识别(并且我已经尝试编辑该途径,但是我发现的每个视频或网站都有不同的信息)。 Even a basic check of my Python version comes back with no results:甚至我的Python版本的基本检查都没有结果:

在此处输入图片说明

I have uninstalled and reinstalled Python 3.9 but to no avail.我已经卸载并重新安装了Python 3.9,但无济于事。 There is also no scripts file within my python file and my computer doesn't even seem to recognise that Python is installed.我的python文件中也没有脚本文件,并且我的计算机似乎甚至无法识别已安装Python。

I have a very basic question that I am sure will be easy for someone to solve;我有一个非常基本的问题,我相信这个问题很容易解决。 I recently downloaded and installed Python 3.9 because I wanted to run a website scraper to more easily organise recipes found online.我最近下载并安装了Python 3.9,因为我想运行一个网站刮板,以便更轻松地组织在线找到的食谱。 However, when I try to run pip it says it doesn't recognise it (and I have tried editing the pathway, but every video or site I find has different information).但是,当我尝试运行pip它说它无法识别(并且我已经尝试编辑该途径,但是我发现的每个视频或网站都有不同的信息)。 Even a basic check of my Python version comes back with no results:甚至我的Python版本的基本检查都没有结果:

在此处输入图片说明

I have uninstalled and reinstalled Python 3.9 but to no avail.我已经卸载并重新安装了Python 3.9,但无济于事。 There is also no scripts file within my python file and my computer doesn't even seem to recognise that Python is installed.我的python文件中也没有脚本文件,并且我的计算机似乎甚至无法识别已安装Python。

I have a very basic question that I am sure will be easy for someone to solve;我有一个非常基本的问题,我相信这个问题很容易解决。 I recently downloaded and installed Python 3.9 because I wanted to run a website scraper to more easily organise recipes found online.我最近下载并安装了Python 3.9,因为我想运行一个网站刮板,以便更轻松地组织在线找到的食谱。 However, when I try to run pip it says it doesn't recognise it (and I have tried editing the pathway, but every video or site I find has different information).但是,当我尝试运行pip它说它无法识别(并且我已经尝试编辑该途径,但是我发现的每个视频或网站都有不同的信息)。 Even a basic check of my Python version comes back with no results:甚至我的Python版本的基本检查都没有结果:

在此处输入图片说明

I have uninstalled and reinstalled Python 3.9 but to no avail.我已经卸载并重新安装了Python 3.9,但无济于事。 There is also no scripts file within my python file and my computer doesn't even seem to recognise that Python is installed.我的python文件中也没有脚本文件,并且我的计算机似乎甚至无法识别已安装Python。

I have a very basic question that I am sure will be easy for someone to solve;我有一个非常基本的问题,我相信这个问题很容易解决。 I recently downloaded and installed Python 3.9 because I wanted to run a website scraper to more easily organise recipes found online.我最近下载并安装了Python 3.9,因为我想运行一个网站刮板,以便更轻松地组织在线找到的食谱。 However, when I try to run pip it says it doesn't recognise it (and I have tried editing the pathway, but every video or site I find has different information).但是,当我尝试运行pip它说它无法识别(并且我已经尝试编辑该途径,但是我发现的每个视频或网站都有不同的信息)。 Even a basic check of my Python version comes back with no results:甚至我的Python版本的基本检查都没有结果:

在此处输入图片说明

I have uninstalled and reinstalled Python 3.9 but to no avail.我已经卸载并重新安装了Python 3.9,但无济于事。 There is also no scripts file within my python file and my computer doesn't even seem to recognise that Python is installed.我的python文件中也没有脚本文件,并且我的计算机似乎甚至无法识别已安装Python。

I have a very basic question that I am sure will be easy for someone to solve;我有一个非常基本的问题,我相信这个问题很容易解决。 I recently downloaded and installed Python 3.9 because I wanted to run a website scraper to more easily organise recipes found online.我最近下载并安装了Python 3.9,因为我想运行一个网站刮板,以便更轻松地组织在线找到的食谱。 However, when I try to run pip it says it doesn't recognise it (and I have tried editing the pathway, but every video or site I find has different information).但是,当我尝试运行pip它说它无法识别(并且我已经尝试编辑该途径,但是我发现的每个视频或网站都有不同的信息)。 Even a basic check of my Python version comes back with no results:甚至我的Python版本的基本检查都没有结果:

在此处输入图片说明

I have uninstalled and reinstalled Python 3.9 but to no avail.我已经卸载并重新安装了Python 3.9,但无济于事。 There is also no scripts file within my python file and my computer doesn't even seem to recognise that Python is installed.我的python文件中也没有脚本文件,并且我的计算机似乎甚至无法识别已安装Python。

I finally can use pip install.我终于可以使用 pip install 了。 Here is how I do it:这是我如何做到的:

  1. Run python 3.6.9-adm64.exe运行 python 3.6.9-adm64.exe

  2. Choose Modify选择修改

  3. Tick all boxes and click Next勾选所有框,然后单击下一步

  4. Tick [Create shortcuts...appplication](not important) and Add Python to environment variables and click Install勾选 [创建快捷方式...应用程序](不重要)并将 Python 添加到环境变量,然后单击安装

  5. Now run CMD and type:现在运行 CMD 并输入:

     py -m pip install (name) //pygame for example

Now I installed pygame easily.现在我轻松安装了 pygame。

Install python again and when the prompt window opens, click on the modify button.再次安装python,当提示窗口打开时,点击修改按钮。 Then check if pip is checked.然后检查pip是否被选中。 If not then check it and then proceed with the install.如果没有,请检查它,然后继续安装。 enter image description here在此处输入图片说明

If it still doesn't work, simply uninstall python.如果它仍然不起作用,只需卸载python。 And then when you reinstall it make sure that the ADD to path checkbox is checked.然后当您重新安装它时,请确保选中添加到路径复选框。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM