0
我想import pyperclip
在崇高的文本3的蟒蛇REPL标签,但我得到了以下错误:sublimeREPL不能导入_ctypes
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyperclip
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\a\AppData\Local\Programs\Python\Python35\lib\site-packages\pyperclip\__init__.py", line 31, in <module>
from .clipboards import (init_osx_clipboard,
File "C:\Users\a\AppData\Local\Programs\Python\Python35\lib\site-packages\pyperclip\clipboards.py", line 3, in <module>
from .exceptions import PyperclipException
File "C:\Users\a\AppData\Local\Programs\Python\Python35\lib\site-packages\pyperclip\exceptions.py", line 1, in <module>
import ctypes
File "C:\Users\a\AppData\Local\Programs\Python\Python35\lib\ctypes\__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ImportError: Module use of python33.dll conflicts with this version of Python.
事实证明,我无法导入_ctypes在所有:
>>> import _ctypes
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: Module use of python33.dll conflicts with this version of Python.
>>>
进口相同的命令提示符下或无功,为什么不能在sublimeREPL?
有一种方法来解决它,只是给我一点,因为我现在不在Windows上...... – MattDMo
谢谢,@MattDMo!我能够很容易地修复它。我只是需要知道它是可以修复的,我猜。 :) – AXO