Importerror:无法导入名称日志记录

时间:2018-03-22 09:25:00

标签: python python-2.7 logging psychopy

我在Windows 10 64位上使用Psychopy 1.83.03,32位和python anaconda 2.7 64位。

当我尝试导入核心,数据,事件,gui和visual时,它会给我一个导入错误。下面是代码和错误回溯。

from __future__ import division, print_function
from win32api import GetSystemMetrics
import numpy as np
import os

from psychopy import core, data, event, gui, visual 
import qmix
import cv2
import threading
#import time
import datetime
#from timeit import default_timer as timer
#import xlwt
#import xlsxwriter
#import openpyxl
Traceback (most recent call last):

File "<ipython-input-37-f571478c27e1>", line 20, in <module>
from psychopy import core, data, event, gui, visual

File "C:\Users\ravikumar.mevada\Anaconda2\lib\site-packages\psychopy\event.py", line 57, in <module>
from psychopy import logging

ImportError: cannot import name logging    

1 个答案:

答案 0 :(得分:0)

这会将其安装在其自己的Python版本文件夹中:

python3.6 -m pip install pakage-name