在 Windows 7 中通过网络共享访问 python httplib2

发布于 2024-08-15 07:40:42 字数 1258 浏览 3 评论 0原文

我正在尝试从 Windows 7 上的网络共享运行 python。 网络共享是 T:

>t:\python-2.6.1\python
Python 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import httplib2
httplib2\__init__.py:29: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "T:\python-2.6.1\lib\python2.6\site-packages\httplib2\__init__.py", line 36, in <module>
import httplib
File "T:\python-2.6.1\lib\httplib.py", line 77, in <module>
import mimetools
File "T:\python-2.6.1\lib\mimetools.py", line 6, in <module>
import tempfile
File "T:\python-2.6.1\lib\tempfile.py", line 34, in <module>
from random import Random as _Random
File "T:\python-2.6.1\lib\random.py", line 871, in <module>
_inst = Random()
File "T:\python-2.6.1\lib\random.py", line 96, in __init__
self.seed(x)
File "T:\python-2.6.1\lib\random.py", line 110, in seed
a = long(_hexlify(_urandom(16)), 16)
WindowsError: [Error 127] The specified procedure could not be found

当我将 python-2.6.1 复制到本地驱动器时,它工作正常。它在我的 Windows XP 计算机上使用相同的网络共享也可以正常工作。

I am trying to run python from a network share on windows 7.
The network share is T:

>t:\python-2.6.1\python
Python 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import httplib2
httplib2\__init__.py:29: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "T:\python-2.6.1\lib\python2.6\site-packages\httplib2\__init__.py", line 36, in <module>
import httplib
File "T:\python-2.6.1\lib\httplib.py", line 77, in <module>
import mimetools
File "T:\python-2.6.1\lib\mimetools.py", line 6, in <module>
import tempfile
File "T:\python-2.6.1\lib\tempfile.py", line 34, in <module>
from random import Random as _Random
File "T:\python-2.6.1\lib\random.py", line 871, in <module>
_inst = Random()
File "T:\python-2.6.1\lib\random.py", line 96, in __init__
self.seed(x)
File "T:\python-2.6.1\lib\random.py", line 110, in seed
a = long(_hexlify(_urandom(16)), 16)
WindowsError: [Error 127] The specified procedure could not be found

When I copy python-2.6.1 to my local drive it works fine. It also works fine on my windows XP machine using the same network share.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

静谧 2024-08-22 07:40:42

彼得,
当我将 python-2.6.1 从网络共享复制到本地驱动器时,它工作正常。它在我的 Windows XP 计算机上使用相同的网络共享也可以正常工作。

Peter,
When I copy python-2.6.1 from the network share to my local drive it works fine. It also works fine on my windows XP machine using the same network share.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文