如果我运行conda install tensorflow
,则conda希望与CUDA等一起安装GPU版本。我没有Nvidia GPU,因此我想安装仅CPU版本。
$ conda install tensorflow
Solving environment: done
## Package Plan ##
environment location: /home/cjk/.conda/envs/athion-forecaster
added / updated specs:
- tensorflow
The following packages will be downloaded:
package | build
---------------------------|-----------------
tensorflow-base-1.12.0 |gpu_py36had579c0_0 216.9 MB
tensorflow-1.12.0 |gpu_py36he74679b_0 3 KB
_tflow_select-2.1.0 | gpu 2 KB
tensorboard-1.12.0 | py36hf484d3e_0 3.1 MB
------------------------------------------------------------
Total: 220.1 MB
The following NEW packages will be INSTALLED:
_tflow_select: 2.1.0-gpu
cudatoolkit: 9.2-0
cudnn: 7.2.1-cuda9.2_0
cupti: 9.2.148-0
keras-applications: 1.0.6-py36_0
keras-preprocessing: 1.0.5-py36_0
tensorboard: 1.12.0-py36hf484d3e_0
tensorflow: 1.12.0-gpu_py36he74679b_0
tensorflow-base: 1.12.0-gpu_py36had579c0_0
Proceed ([y]/n)?
运行conda search tensorflow
表明存在CPU包(实际上是最新张量流的eigen
和mkl
这两种类型):
conda search tensorflow
...
tensorflow 1.12.0 eigen_py27hfe19c55_0 pkgs/main
tensorflow 1.12.0 eigen_py36hbd5f568_0 pkgs/main
tensorflow 1.12.0 gpu_py27h2a0f108_0 pkgs/main
tensorflow 1.12.0 gpu_py27h956c076_0 pkgs/main
tensorflow 1.12.0 gpu_py36he68c306_0 pkgs/main
tensorflow 1.12.0 gpu_py36he74679b_0 pkgs/main
tensorflow 1.12.0 mkl_py27hc55d17a_0 pkgs/main
tensorflow 1.12.0 mkl_py36h69b6ba0_0 pkgs/main
我如何告诉conda安装MKL版本?
我尝试了conda install tensorflow[mkl]
,但是得到的结果与没有[mkl]
的结果相同。 conda install tensorflow=mkl
失败,PackagesNotFoundError
。
答案 0 :(得分:6)
我找到了它:make[2]: *** No rule to make target 'libzimpl-NOTFOUND', needed by 'bin/scip'.
Stop.
////CMakeFiles/Makefile2:1488: recipe fortarget'scip/src/CMakeFiles/scip.dir/all' failed
////make[1]: *** [scip/src/CMakeFiles/scip.dir/all] Error 2
/////Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2.
答案 1 :(得分:0)
SELECT *
FROM sys.dm_tran_active_transactions tat
INNER JOIN sys.dm_exec_requests er ON tat.transaction_id = er.transaction_id
CROSS APPLY sys.dm_exec_sql_text(er.sql_handle)
为我工作,带星号的版本不起作用。
答案 2 :(得分:0)
在Windows 10中,使用conda install tensorflow==1.14.0=mkl*
为我工作。