简体   繁体   中英

Anaconda installing tensorflow and fancyimpute

As a premise, I would specify that I am new to Python, so please forgive eventual inaccuracies.

So, I have recently installed Anaconda, and updated the Python version to 3.7.1. In order to impute some missing values in my dataset using KNN, I've found a useful function in a package called fancyimpute.

However, such package is not among those already available (that is, from Spyder, the IDE I'm using, I cannot simply import it), so I need to install it.

Opening, as such, the Anaconda prompt and typing "conda install fancyimpute" doesn't work, returning the following:

"PackagesNotFoundError: The following packages are not available from current channels:

  • fancyimpute

Current channels:

(here a list of some channels)

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page".

Going, therefore, with "pip install fancyimpute" (although to me it's still not clear the difference between conda install and pip install) after a while I obtain the following:

"Collecting tensorflow (from fancyimpute)

Could not find a version that satisfies the requirement tensorflow (from fancyimpute) (from versions: ) No matching distribution found for tensorflow (from fancyimpute)"

I have therefore now run "conda install tensorflow", and is already about 30 minutes that is Solving environment.

What can I do? How can I obtain the desired package and avoid similar problems in future? Many thanks and hope I was clear in exposing the problem.

UPDATE: https://anaconda.org/search?q=fancyimpute From here, it seems that fancyimpute isn't available on my platform, w-64. How can I overcome this problem?

SOLVED: Apparently, I have solved the problem. I have first created an ad hoc environment and installed tensorflow using conda. Then, I have pip installed fancyimpute: at this point, got a couple of new errors ("Failed building wheel for fastacache", and same for cvxpy), both solved installing Microsoft Visual C++ Build Tools. So, finally, I have been able to install also fancyimpute. Nonetheless, at this point, I coulnd't import it (ImportError: DLL load failed: The specified module could not be found. Failed to load the native TensorFlow runtime). After uninstalling and reinstalling tensorflow using conda-forge as channel, now it works.

User brittainhard on anaconda.org had the same idea . To use his/her version of the library (hosted on anaconda.org):

conda install -c brittainhard fancyimpute

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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