我试图在堆栈上搜索相同的问题,但是没有一个问题是有用的和精确的。我试着安装。我用一种方式,然后另一种方式:
1)我从https://pypi.python.org/pypi/python-dateutil/下载了python-dateutil-2.4.2.tar.gz,并尝试手动安装它。没有工作,所以我把它解压缩到:C\Python27 27\,在PowerShell中做了以下操作:
PS C:\ python 27\python-dateutil-2.4.2>pythonpython-dateutil.py
结果没成功,我得到了这个:
PS C:\Python27\python-dateutil-2.4.2> python setup.py
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: no commands supplied2)我也从https://pypi.python.org/pypi/python-dateutil/下载python_dateutil-2.4.2-py2.py3-no. well。这一次当然是作为车轮文件。我把它放在:C\Python27 27中,在PowerShell中我这样做了:
pip:\Python27\python-dateutil-2.4.2>pip安装python_dateutil-2.4.2-py2.py3-none-any.whl
再说一次,这不管用,我得到了这个:
The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spellin
g of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:4
+ pip <<<< install python_dateutil-2.4.2-py2.py3-none-any (1).whl
+ CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException我该怎么办?
发布于 2015-11-25 04:59:07
这样做:
1-将pip安装目录添加到环境变量路径。
2-打开新命令提示符
3-类型pip安装python-dateutil
完成了!!
https://stackoverflow.com/questions/33908706
复制相似问题