PIL-Python Imaging Library的安装和使用过程是什么? [英] what is the process of installing and working with PIL - Python Imaging Library ?

查看:150
本文介绍了PIL-Python Imaging Library的安装和使用过程是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用pip安装PIL,这会给我这个错误:

I tried installing PIL with pip it gives me this error:

C:\ Users \ AppData \ Local \ pip> pip安装 http://effbot.org/downloads/Imaging-1.1.6.tar. gz 'pip'不是 被识别为内部或外部命令,可操作程序或 批处理文件.

C:\Users\AppData\Local\pip>pip install http://effbot.org/downloads/Imaging-1.1.6.tar.gz 'pip' is not recognized as an internal or external command, operable program or batch file.

推荐答案

我也遇到了这些问题.可能有很多原因,其中一个应解决:

I've had these issues as well. There could be many reasons, one of these should fix:

1. PIP未添加到系统PATH

1. PIP not added to system PATH

这是最常见的问题,新用户很容易忽略. 选中它以获取答案.

This being the most common issue and is easily missed by new users. check this for answers.

2.如果您使用的是Anaconda之类的python IDE,但实际上并没有直接安装python

2. When you're using a python IDE such as Anaconda but haven't actually installed python directly

您可以打开Anaconda Prompt(在开始菜单的Anaconda文件组中),然后使用pip.

You can open the Anaconda Prompt (in the Anaconda file group in your start menu) and then use pip.

3.您仅为安装用户(主要是管理员)安装了python

您的系统具有多个帐户,并且如果您使用admin或类似帐户进行安装,并且错过了install for all users,则需要使用有效的管理员用户名使用'Right click > Run as Administrator'选项打开CMD /pwd.

Your system has multiple accounts and if you have installed using admin or similar account and missed 'install for all users', you'll need to open the CMD using 'Right click > Run as Administrator' option with a valid admin username/pwd.

这篇关于PIL-Python Imaging Library的安装和使用过程是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆