pytensor icon indicating copy to clipboard operation
pytensor copied to clipboard

BUG: Latest PyTensor versions not available in conda?

Open aviv-ianphilipp opened this issue 9 months ago • 1 comments

Describe the issue:

When I execute conda search pytensor

I received

Loading channels: done
# Name                       Version           Build  Channel             
pytensor                      2.12.3 py310h46d7db6_0  pkgs/main           
pytensor                      2.12.3 py310h46d7db6_2  pkgs/main           
pytensor                      2.12.3 py311h7aedaa7_0  pkgs/main           
pytensor                      2.12.3 py311h7aedaa7_2  pkgs/main           
pytensor                      2.12.3  py38h46d7db6_0  pkgs/main           
pytensor                      2.12.3  py39h46d7db6_0  pkgs/main           
pytensor                      2.12.3  py39h46d7db6_2  pkgs/main           
pytensor                      2.13.1 py310h46d7db6_0  pkgs/main           
pytensor                      2.13.1 py311h7aedaa7_0  pkgs/main           
pytensor                      2.13.1  py38h46d7db6_0  pkgs/main           
pytensor                      2.13.1  py39h46d7db6_0  pkgs/main           
pytensor                      2.23.0 py311h7aedaa7_0  pkgs/main           
pytensor                      2.23.0 py311h7aedaa7_1  pkgs/main           
pytensor                      2.23.0 py312hd77ebd4_0  pkgs/main           
pytensor                      2.23.0 py312hd77ebd4_1  pkgs/main  

but unfortunately I need >=2.28.2 and <2.29. With pip I can see later versions but the developers for pymc-marketing encouraged me to install pytensor with conda. Any suggestions?

Reproducable code example:

conda search pytensor

Error message:


PyTensor version information:

trying to install 2.28.2 or later

Context for the issue:

No response

aviv-ianphilipp avatar Mar 20 '25 09:03 aviv-ianphilipp

Hi @aviv-ianphilipp! Sorry you're having installation issues.

We publish PyTensor on the conda-forge channel, not Anaconda's defaults channel. The conda-forge channel is unencumbered by Anaconda's licensing terms, and always has our up-to-date packages.

Could you please try the following command to see if you get the expected results?

conda search -c conda-forge pytensor

Also, when you create a Conda environment, please ensure that all the packages are being installed from conda-forge. (You can check the "Channel" column of conda list in an activated environment.) Mixing conda-forge with Anaconda's defaults channel often leads to a broken environment.

maresb avatar Mar 20 '25 09:03 maresb