Conda compatibility
See original GitHub issueHi! I tried installing poetry alongside my miniconda env. It’s installed via the curl installer.
At first, it seems that package resolving and installing works. When I try to run the script using:
poetry run python project/script.py
It emit the error saying that package is not found, which can be found in poetry show
.
I’m not sure if this is actually conda related issue or just misuse of the CLI. Would be nice to know how I can get it working with poetry. Seems like a really nice project. Thx
Issue Analytics
- State:
- Created 5 years ago
- Reactions:19
- Comments:22 (8 by maintainers)
Top Results From Across the Web
Installation — conda 22.11.1.post9+82fa24bae documentation
The fastest way to obtain conda is to install Miniconda, a mini version of Anaconda that includes only conda and its dependencies.
Read more >System Requirements - Anaconda Documentation
RHEL/CentOS 6.5 to 7.4, Ubuntu 12.04 +. Ubuntu users may need to install cURL. · Client environment may be Windows, macOS or Linux...
Read more >How to Manage Python Dependencies with Conda - ActiveState
Conda analyzes each package for compatible dependencies, and how to install them without conflict. If there is a conflict, Conda will let ...
Read more >Conda Support - Read the Docs
This is the best option to maximize cross-platform compatibility, however it may include packages that are not needed to build your docs.
Read more >python 3.x - how does conda check packages for compatibility?
Conda checks, if all packages that will end up in the environment are compatible with each other and tries to find the optimal...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sdispater I think everyone is missing a key point here:
poetry
only support pure python wheels.conda
comes with many packages built and optimized for speed targeting specific platforms, which is needed for many scientific applications (e.g.numpy+mkl
, Intelembree
, support forSSE
andAVX
instruction sets, etc.). Untilpoetry
can support these packages for heavy-lifting data science applications, I don’t thinkpoetry
will be much use at all to the data scientist.In addition to the above, I had to configure poetry to not create a new virtualenv to use the conda env::
It seems like an inevitability that you are going use pip for something when using conda, so at the very least having the poetry wrapper over top is a bonus, as long as you’re basically using conda as just a python vendor as @darrenleeweber describes. It seems like the “right” way to mix the two would be to create a CondaEnv and CondaInstaller that are somehow configurable within. I’m definitely not enough of a conda internals expert to attempt this though.
Given the necessity of managing scientific and numerical dependencies for python projects it sure would be nice if there really was “one-- and preferably only one --obvious way to do it.”