Comments (4)
CondaPkg does not promise (so far) to follow the same package specs as the Conda command line, so it's not a bug that tensorflow=*=cpu*
is not supported. In fact the CondaPkg REPL syntax is very under-specified right now - sort of intentionally.
For your specific case, you can already do conda add 'tensorflow >0 cpu*'
or CondaPkg.add("tensorflow", build="cpu*")
.
On the one hand, it is nice to support familiar syntax for Conda users. On the other hand, the pkg=version=build
syntax has the drawback that it limits what versions are allowed (e.g. you can't specify the version as >=3,<4
because those extra =
s confuse things) and the pkg=version
syntax is special in that foo=3.8
actually parses the version as 3.8.*
.
Also, CondaPkg generally tries to stick to conventions from Pkg. So I propose specifying the build with a #
, e.g. conda add tensorflow#cpu*
.
What do you think?
from condapkg.jl.
For your specific case, you can already do conda add 'tensorflow >0 cpu*' or CondaPkg.add("tensorflow", build="cpu*").
Thanks, I didn't know that, and it might be worth to add some test or some documentation examples for the users.
the pkg=version=build syntax has the drawback that it limits what versions are allowed (e.g. you can't specify the version as >=3,<4 because those extra =s confuse things)
Yes, imo using a =
is a poor choice from the conda developers in the first place.
I would tend to agree with the choice of using add
instead or install
for consistency with Pkg
. In fact, we could use @1.2
for version specifiers and as you proposed #cpu*
for a build spec, and try to stick with the Pkg conventions. Of course, this would need docs.
from condapkg.jl.
FYI #59 implements this suggestion.
from condapkg.jl.
Great, thanks for the prompt fix and the new release ;)
from condapkg.jl.
Related Issues (20)
- Set conda environment for a package HOT 2
- CondaPkg constantly uninstalling, reinstalling all packages HOT 4
- `conda-build` and `conda skeleton` HOT 3
- Automatically load conda packages from the dependend julia packages HOT 3
- To do: ignore indirect dependencies on CondaPkg
- How to make RCall.jl use a CondaPkg.jl environment? HOT 8
- add preferences to control allowed channels and priority
- freeze the environment by default when it is activated HOT 2
- add completions for rm, pip_rm and channel_rm HOT 1
- dependency overrides HOT 1
- [Bug] file is not passed to write_toml HOT 2
- only add channel if it is not already added
- using CondaPkg with Pluto leads to unnecesarry resolves HOT 7
- Post install/update hook HOT 3
- Feature Request: Support CONDA_CHANNELS to set conda channels HOT 1
- access denied.: "C:\Users\...\v1.9\.CondaPkg\env\DLLs\_ctypes.pyd.mamba_trash" HOT 1
- `pip_add` for URLs HOT 6
- `critical libmamba could not load prefix data` after conda add failed due to low memory HOT 1
- Make `--override-channels` optional? HOT 1
- Testing a package that depend on CondaPkg.jl creates a new environment every time HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from condapkg.jl.