Installed a package failed

It shows that it failed to install the library "records", however, I was able to install through "pip install records", which was already installed, but probably not in this environment. In PyCharm, I followed the indication to try to install the requirements, but failed and the message is below:

Solving environment: ...working... failed


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

- records

Current channels:

- https://repo.anaconda.com/pkgs/main/osx-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/free/osx-64
- https://repo.anaconda.com/pkgs/free/noarch
- https://repo.anaconda.com/pkgs/r/osx-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/pro/osx-64
- https://repo.anaconda.com/pkgs/pro/noarch

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.

5 comments
Comment actions Permalink

Any comments or solution suggestion? Thanks

0
Comment actions Permalink

Hello Lingvisa,

I am facing the exact same situation, did you find any solution for this issue ?

Thanks in advance for your help

 

0
Comment actions Permalink

Same problem:

When I installed the packages using the intellij GUI, it was failing.
How I do it:
Move your cursor to the import module statement, which is flagged missing.
Shift+Ctrl+m (This is a eclipse key binding), will start installing the package.
Will fail.

I had Anaconda3 also installed on my windows system. Intellij was also using this.
1. Opened anaconda3 shell.
2. conda info --envs
Will tell me the current active environment. Indicated by a star. It was "*base"
I wanted the environment called "beakerx".
>activate beakerx
Then issue.
>python -m pip install netCDF4
This succeeded, and as a result within intellij also the module was available. 

Intellij was using the same environment "beakerx" to install the package, but did not work.
This is a work around for me.
In some cases, the intellij install works within the IDE. 

0
Comment actions Permalink

@Sguha

Please note that pip and conda are two very different package managers. The fact that you can install a package with pip from the anaconda prompt doesn't mean there is something wrong in IDE. When a conda environment is used, IDE uses a conda package manager instead of pip.

0

Please sign in to leave a comment.