简体   繁体   English

安装web.py

[英]Installing web.py

I know there are a lot of discussions over this question of installing web.py. 我知道关于安装web.py的问题有很多讨论。 I have checked most of them and did 我检查了大多数,并做了

pip install web.py
easy_install web.py
python setup.py

install after downloading and copying the files in the python34 folder. 在下载并复制python34文件夹中的文件后进行安装。 But still not working. 但仍然无法正常工作。 First case: 第一种情况:

>>> pip install web.py
  File "<stdin>", line 1
    pip install web.py
              ^
SyntaxError: invalid syntax

Second Case: 第二种情况:

>>> easy_install web.py
  File "<stdin>", line 1
    easy_install web.py
                   ^
SyntaxError: invalid syntax

Third Case: 第三种情况:

 python setup.py
  File "<stdin>", line 1
    python setup.py
               ^
SyntaxError: invalid syntax

pip and easy_install are command line programs, not python functions. pip和easy_install是命令行程序,而不是python函数。 So to get them to work, type into the terminal of your choice pip install web.py 因此,要使其正常工作,请在您选择的终端中输入pip install web.py

After download web.py source file, you don't need to copy it to python34 dir. 下载web.py源文件后,无需将其复制到python34 dir。 Just put it somewhere you lik. 只要把它放在你喜欢的地方。 In the folder where setup.py is located, use: setup.py所在的文件夹中,使用:

python setup.py install 

to install it. 安装它。

Or simply in the terminal use: 或者只是在终端中使用:

pip install web.py

Anyways here is the complete installation guide for web.py. 无论如何,这里是web.py的完整安装指南 By the way are you using pip in sudo mode? 顺便问一下,您是否在sudo模式下使用pip

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

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