简体   繁体   中英

'conda list' shows package but anaconda navigator does not

When I type conda list into Windows command I can see

pyswarm 0.6 pip

but when I search for pyswarm in my root environment it doesn't show up. Assuming that only packages in my anaconda list can be imported in PyCharm ( false, see comment ), I want pyswarm to show up in my list in root (3.6)

I have tried (pip uninstall pyswarm after each failed attempt)

pip install -i https://pypi.anaconda.org/pypi/simple pyswarm ( from here )

pip install --upgrade pyswarm ( from here )

activate root (enter) --- pip install --upgrade swarm

My fix was to just use Jupyter copy the pso.py library into my PyCharm project

Thoughts:

  • The first install attempt is for a 2.7 package. My root is 3.6
  • There is a Git repo , but I believe this is a more appropriate platform for this Q

It will only show anaconda site-packages folder where all libraries are installed. You can't directly see in program files like normal software. Anaconda is listing because it found in site-packages. Use any IDE (ex:PyCharm or simple windows cmd ) to check whether you able to import or not.

Import package-name

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