简体   繁体   English

在 Windows 上安装 Hyperopt

[英]Hyperopt installation on Windows

I would greatly appreciate if you could let me know how to install Hyperopt using anaconda on windows 10. I tried this instruction to install it as it shows below:如果您能让我知道如何在 Windows 10 上使用 anaconda 安装 Hyperopt,我将不胜感激。我尝试按照以下说明安装它,如下所示:

(C:\Users\Markazi.co\ Anaconda3) C:\Users\Markazi.co>conda install -c jaikumarm hyperopt=0.1
Fetching package metadata ...........
Solving package specifications: .
PackageNotFoundError: Package not found: '' Package missing in current win-64 channels:
  - hyperopt 0.1*
You can search for packages on anaconda.org with
    anaconda search -t conda hyperopt
(C:\Users\Markazi.co\ Anaconda3) C:\Users\Markazi.co>conda install -c jaikumarm hyperopt
Fetching package metadata ...........
Solving package specifications: ..........

# All requested packages already installed.
# packages in environment at C:\Users\Markazi.co\Anaconda3:
#
hyperopt                  0.0.3.dev                py35_0    jaikumarm
(C:\Users\Markazi.co\ Anaconda3) C:\Users\Markazi.co>

Although it seems that the packages are installed, this error is reported:虽然貌似安装了包,但是报这个错误:

from hyperopt import hp, fmin, tpe
ImportError: cannot import name 'hp'

Then, I tried to install it using python:然后,我尝试使用 python 安装它:

(C:\Users\Markazi.co\Anaconda3) C:\Users\Markazi.co>conda remove -c jaikumarm hyperopt
Fetching package metadata ...........
Solving package specifications: ..........
Package plan for package removal in environment C:\Users\Markazi.co\Anaconda3:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    pip-9.0.1                  |           py35_1         1.7 MB

The following packages will be REMOVED:
    hyperopt: 0.0.3.dev-py35_0 jaikumarm
The following packages will be UPDATED:
    pip:      8.1.2-py35_0               --> 9.0.1-py35_1
Proceed ([y]/n)? y
Fetching packages ...
pip-9.0.1-py35 100% |###############################| Time: 0:00:01   1.05 MB/s
Extracting packages ...
[      COMPLETE      ]|##################################################| 100%
Unlinking packages ...
[      COMPLETE      ]|##################################################| 100%
Linking packages ...
[      COMPLETE      ]|##################################################| 100%
(C:\Users\Markazi.co\Anaconda3) C:\Users\Markazi.co>conda update pip
Fetching package metadata .........
Solving package specifications: ..........
# All requested packages already installed.
# packages in environment at C:\Users\Markazi.co\Anaconda3:
#
pip                       9.0.1                    py35_1
(C:\Users\Markazi.co\Anaconda3) C:\Users\Markazi.co>pip install hyperopt
Collecting hyperopt
  Downloading hyperopt-0.1.tar.gz (98kB)
    100% |################################| 102kB 172kB/s
Requirement already satisfied: numpy in c:\users\markazi.co\anaconda3\lib\site-packages (from hyperopt)
Requirement already satisfied: scipy in c:\users\markazi.co\anaconda3\lib\site-packages (from hyperopt)
Requirement already satisfied: nose in c:\users\markazi.co\anaconda3\lib\site-packages (from hyperopt)
Requirement already satisfied: pymongo in c:\users\markazi.co\anaconda3\lib\site-packages (from hyperopt)
Requirement already satisfied: six in c:\users\markazi.co\anaconda3\lib\site-packages (from hyperopt)
Requirement already satisfied: networkx in c:\users\markazi.co\anaconda3\lib\site-packages (from hyperopt)
Collecting future (from hyperopt)
  Downloading future-0.16.0.tar.gz (824kB)
    100% |################################| 829kB 107kB/s
Requirement already satisfied: decorator>=3.4.0 in c:\users\markazi.co\anaconda3\lib\site-packages (from networkx->hyperopt)
Building wheels for collected packages: hyperopt, future
  Running setup.py bdist_wheel for hyperopt ... done
  Stored in directory: C:\Users\Markazi.co\AppData\Local\pip\Cache\wheels\4b\0f\9d\1166e48523d3bf7478800f250b0fceae31ac6a08b8a7cca820
  Running setup.py bdist_wheel for future ... done
  Stored in directory: C:\Users\Markazi.co\AppData\Local\pip\Cache\wheels\c2\50\7c\0d83b4baac4f63ff7a765bd16390d2ab43c93587fac9d6017a
Successfully built hyperopt future
Installing collected packages: future, hyperopt
Successfully installed future-0.16.0 hyperopt-0.1
(C:\Users\Markazi.co\Anaconda3) C:\Users\Markazi.co>

Again, it is installed but the same error is reported:同样,它已安装,但报告了相同的错误:

from hyperopt import hyperopt, fmin, tpe
ImportError: cannot import name 'hyperopt'

Best regards,此致,

According to this you can do it via 根据这个你可以做到这一点

conda install -c jaikumarm hyperopt=0.1 conda install -c jaikumarm hyperopt = 0.1

你也可以试试pip命令

pip install hyperopt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM