没有名为urllib的模块 [英] No module named urllib

查看:66
本文介绍了没有名为urllib的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编辑了环境varialbes并添加了C:\Python25 \Lib到

PYTHONPATH但是在语句


import时得到no module消息urllib


被执行。


甚至尝试将urllib文件复制到我的工作目录。


有什么建议吗?


谢谢,


jh

I edited environment varialbes and have added C:\Python25\Lib to
PYTHONPATH but get the no module message when the statement

import urllib

is executed.

Even tried copying the urllib file to my working directory.

Any suggestions?

Thanks,

jh

推荐答案

HMS Surprise< jo ** @ datavoiceint.comwrites:
HMS Surprise <jo**@datavoiceint.comwrites:

我编辑了环境varialbes并添加了C:\Python25 \Lib到

PYTHONPATH但在声明


import urllib

执行时会收到无模块消息。


甚至尝试将urllib文件复制到我的工作目录。


有什么建议吗?
I edited environment varialbes and have added C:\Python25\Lib to
PYTHONPATH but get the no module message when the statement

import urllib

is executed.

Even tried copying the urllib file to my working directory.

Any suggestions?



没有消息是好的! :-)


如果您收到任何错误消息,那么您就会遇到问题。


-

Jorge Godoy< jg **** @ gmail.com>

No messages is good! :-)

If you got any error messages then you''d have a problem.

--
Jorge Godoy <jg****@gmail.com>


5月7日下午5:29,Jorge Godoy< jgo ... @ gmail .comwrote:
On May 7, 5:29 pm, Jorge Godoy <jgo...@gmail.comwrote:

HMS Surprise< j ... @ datavoiceint.comwrites:
HMS Surprise <j...@datavoiceint.comwrites:

我编辑环境varialbes并已添加C:\Python25 \Lib到

PYTHONPATH但在语句
I edited environment varialbes and have added C:\Python25\Lib to
PYTHONPATH but get the no module message when the statement

$ b时获取无模块消息$ b import urllib
import urllib


被执行。
is executed.


甚至尝试将urllib文件复制到我的工作目录。
Even tried copying the urllib file to my working directory.


有什么建议吗?
Any suggestions?



没有消息是好的! :-)


如果您收到任何错误消息,那么您就会遇到问题。


-

Jorge Godoy< jgo ... @ gmail.com>


No messages is good! :-)

If you got any error messages then you''d have a problem.

--
Jorge Godoy <jgo...@gmail.com>



也许我应该把qoutes放在我的句子里。


我得到了没有名为urllib的模块消息。

Perhaps I should have put qoutes in my sentence.

I get the "no module message named urllib".


HMS Surprise< jo ** @ datavoiceint.comwrites:
HMS Surprise <jo**@datavoiceint.comwrites:

也许我应该把qoutes放在我的句子里。
Perhaps I should have put qoutes in my sentence.



或者我应该慢慢阅读它。 ;-)

Or I should have read it slowly. ;-)


我得到了没有名为urllib的模块消息。
I get the "no module message named urllib".



可以请


导入系统

print sys.path


并将答案放在新闻组上?


-

Jorge Godoy< jg **** @ gmail。 com>

Can you please

import sys
print sys.path

and put the answer here on the newsgroup?

--
Jorge Godoy <jg****@gmail.com>


这篇关于没有名为urllib的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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