首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Windows上安装pep8

在Windows上安装pep8
EN

Stack Overflow用户
提问于 2015-03-31 15:06:23
回答 1查看 12.2K关注 0票数 4

试图在Windows 7计算机上安装pep8。因此,我可以使用SublimeLiter作为崇高文本,通过python脚本进行链接。

清除了Python34的安装。签入pip和系统路径选项。

试过:

  1. Ran python pip install pep8.输出:python: can't open file 'pip': [Errno 2] No such file or directory
  2. https://pip.pypa.io/en/latest/installing.html下载了get-pip.py并运行了C:/Python34/get-pip.py install pep8。输出:Collecting install Could not find any downloads that satisfy the requirement install Some externally hosted files were ignored as access to them may be unreliable (use --allow-external install to allow). No distributions at all found for install
  3. C:/Python34/get-pip.py install pep8。输出:未找到命令。

对如何在windows上安装PEP8有任何建议吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-03-31 15:24:44

正如Neitsa所建议的,为了通过-m安装模块,应该使用-m(模块)选项。

以下是CMD的工作解决方案:

代码语言:javascript
复制
python -m pip install pep8

给Naitsa的学分。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29371951

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档