当我尝试在虚拟python环境中导入挂架时,出现错误
C:envScripts>python Python 2.7 (r27:82525,Jul 4 2010,07:43:08) [MSC v.1500 64 bit (A MD64)] on win32 Type "help","copyright","credits" or "license" for more @R_601_4045@i on. >>> import pylons Traceback (most recent call last): File "<stdin>",line 1,in <module> File "C:envlibsite-packagespylons-1.0-py2.7.eggpylons__init __.py",line 6,in <module> from paste.registry import StackedobjectProxy ImportError: No module named registry
据我了解这个错误,Python告诉我,它无法find模块命名registry 。 也许这是我在安装Pylons时得到的错误的结果,这里解释了为什么在Windows Vista 64中使用easy_install和Python 2.7安装Pylons 1.0的最后一行时出现错误?
看来,许多Pylon组件被安装了,但我想registry不是可能的,或者Pylons不能看到它。
任何想法如何解决这个问题?
在Windows 8上用device = gpu(和visual studio 12.0)导入theano(0.6)
脚本来安装驱动程序
ImportError:无法导入名称add_newdocs
如何创build一个安装多个应用程序的打包安装程序,类似于XAMPP?
无法以八度audio运行aviread – 如何安装video包?
python3 PyQt / PySide Linux安装
Hadoop 2.7.2单节点安装windows 10
编译后不会创buildlibPHP5.so,并且不会创build前缀目录
在主目录中安装库
InstallShield 2010确实需要支持Windows 7(反对使用InstallShield 12)
您必须先激活虚拟环境才能导入塔架。
C:UsersJosh>envscriptsactivate (env) C:UsersJosh>python ActivePython 2.6.2.2 (ActiveState Software Inc.) based on Python 2.6.2 (r262:71600,Apr 21 2009,15:05:37) [MSC v.1500 32 bit (Intel)] on win32 Type "help","credits" or "license" for more @R_601_4045@ion. >>> import pylons >>>
与此相对
C:UsersJoshenvScripts>python ActivePython 2.6.2.2 (ActiveState Software Inc.) based on Python 2.6.2 (r262:71600,"credits" or "license" for more @R_601_4045@ion. >>> pylons Traceback (most recent call last): File "<stdin>",in <module> NameError: name 'pylons' is not defined >>>
我猜你的虚拟环境中安装了外挂软件包。 所以Python是让你导入塔,但粘贴包没有安装在您的虚拟环境之外,所以你得到一个错误。
运行激活批处理脚本(应该在你的env Scripts文件夹中)应该可以解决问题。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。