0
import hyperopt
usage: main.py [options] [file_or_dir] [file_or_dir] [...]
main.py: error: unrecognized arguments: -f
inifile: None
rootdir: C:\Users\Myname
C:\Anaconda2\lib\site-packages\IPython\core\interactiveshell.py:2889: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)
An exception has occurred, use %tb to see the full traceback.

SystemExit: 2

这是我想要实现的(导入 hyperopt),以下是我的 jupyter 控制台上的错误。

我正在使用 anaconda 64bit 2.7.(windows 8)

我尝试使用 pip、conda 和 git 安装 hyperopt,但所有试验都失败了。安装软件包时使用没有错误。

你能告诉我我的笔记本电脑或 hyperopt 出了什么问题吗?谢谢你。


我也在 cmd python 中尝试过,我尝试了“import hyperopt”,但发生了下面的错误。

Python 2.7.13 |Anaconda custom (64-bit)| (default, Dec 19 2016, 13:29:36)

[MSC v.1500 64 位 (AMD64)] 在 win32 上键入“帮助”、“版权”、“信用”或“许可证”以获取更多信息。Anaconda 由 Continuum Analytics 提供给您。请查看:http ://continuum.io/thanks和https://anaconda.org 导入 hyperopt =========================== == 测试会话开始 ============================== 平台 win32 -- Python 2.7.13, pytest-3.0.5, py -1.4.32, pluggy-0.4.0 rootdir: C:\Users\Seong NohYoon, inifile: 收集 0 个项目 / 1 个错误

=================================== ERRORS ====================================
______________________________ ERROR collecting  ______________________________
C:\Anaconda2\lib\site-packages\py\_path\common.py:366: in visit
    for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
C:\Anaconda2\lib\site-packages\py\_path\common.py:415: in gen
    for p in self.gen(subdir):
C:\Anaconda2\lib\site-packages\py\_path\common.py:415: in gen
    for p in self.gen(subdir):
C:\Anaconda2\lib\site-packages\py\_path\common.py:415: in gen
    for p in self.gen(subdir):
C:\Anaconda2\lib\site-packages\py\_path\common.py:400: in gen
    entries = path.listdir()
C:\Anaconda2\lib\site-packages\py\_path\local.py:382: in listdir
    names = py.error.checked_call(os.listdir, self.strpath)
C:\Anaconda2\lib\site-packages\py\_error.py:85: in checked_call
    raise cls("%s%r" % (func.__name__, args))
E   EBUSY: [Resource device]: listdir('C:\\Users\\Seong NohYoon\\AppData\\Local\\Application Data',)
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.30 seconds ===========================
4

0 回答 0