Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing v2.4 instead of 3.0 with pip --pre #40

Closed
cbrissaud opened this issue Dec 7, 2021 · 4 comments
Closed

Installing v2.4 instead of 3.0 with pip --pre #40

cbrissaud opened this issue Dec 7, 2021 · 4 comments
Labels
wontfix This will not be worked on

Comments

@cbrissaud
Copy link

It's not the the right version is install in my computer

pip3 install reservoirpy
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at Homebrew/homebrew-core#76621
Collecting reservoirpy
Downloading reservoirpy-0.2.4.post1.tar.gz (45 kB)
|████████████████████████████████| 45 kB 1.6 MB/s
Preparing metadata (setup.py) ... done
Collecting tqdm>=4.43.0
Downloading tqdm-4.62.3-py2.py3-none-any.whl (76 kB)
|████████████████████████████████| 76 kB 3.2 MB/s
Requirement already satisfied: joblib>=0.12 in /opt/homebrew/lib/python3.9/site-packages (from reservoirpy) (1.1.0)
Collecting dill>=0.3.0numpy>=1.15.0
Downloading dill-0.3.4-py2.py3-none-any.whl (86 kB)
|████████████████████████████████| 86 kB 3.8 MB/s
Requirement already satisfied: scipy>=1.0.0 in /opt/homebrew/lib/python3.9/site-packages (from reservoirpy) (1.8.0.dev0+1753.a063cf3)
Requirement already satisfied: numpy>=1.17.3 in /opt/homebrew/lib/python3.9/site-packages (from scipy>=1.0.0->reservoirpy) (1.21.2)
Building wheels for collected packages: reservoirpy
Building wheel for reservoirpy (setup.py) ... done
Created wheel for reservoirpy: filename=reservoirpy-0.2.4.post1-py3-none-any.whl size=54214 sha256=71ecf37a2e29bab3187bb34473e21f02d445963348ea53f79cdd4122414dfc0e
Stored in directory: /Users/cloebrissaud/Library/Caches/pip/wheels/7b/53/10/7e57451fb406376ebedd8497c5dee6d6f2dbf8d05cf2f23bb7
Successfully built reservoirpy
Installing collected packages: tqdm, dill, reservoirpy
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at Homebrew/homebrew-core#76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at Homebrew/homebrew-core#76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at Homebrew/homebrew-core#76621
Successfully installed dill-0.3.4 reservoirpy-0.2.4.post1 tqdm-4.62.3
cloebrissaud@MacBook-Air-de-Cloe ~ % pip3 install --pre reservoirpy

DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at Homebrew/homebrew-core#76621
Requirement already satisfied: reservoirpy in /opt/homebrew/lib/python3.9/site-packages (0.2.4.post1)
Requirement already satisfied: dill>=0.3.0numpy>=1.15.0 in /opt/homebrew/lib/python3.9/site-packages (from reservoirpy) (0.3.4)
Requirement already satisfied: tqdm>=4.43.0 in /opt/homebrew/lib/python3.9/site-packages (from reservoirpy) (4.62.3)
Requirement already satisfied: joblib>=0.12 in /opt/homebrew/lib/python3.9/site-packages (from reservoirpy) (1.1.0)
Requirement already satisfied: scipy>=1.0.0 in /opt/homebrew/lib/python3.9/site-packages (from reservoirpy) (1.8.0.dev0+1753.a063cf3)
Requirement already satisfied: numpy>=1.17.3 in /opt/homebrew/lib/python3.9/site-packages (from scipy>=1.0.0->reservoirpy) (1.21.2)

@nTrouvain nTrouvain added the wontfix This will not be worked on label Dec 7, 2021
@nTrouvain
Copy link
Collaborator

nTrouvain commented Dec 7, 2021

Hello,
This is not how pip works: once you have installed a package, you need to add the --upgrade option to force pip to reinstall a new version. You can also specify the exact version you wish to install:

# this install reservoirpy v0.2.4
pip install reservoirpy

# this update the package to v0.3.0b2
pip install reservoirpy==0.3.0b2

# this should do the same
pip install --upgrade --pre reservoirpy

@neuronalX
Copy link
Collaborator

--update does not seem to be a correct argument for pip:

pip install --update --pre reservoirpy

Usage:
  pip install [options] <requirement specifier> [package-index-options] ...
  pip install [options] -r <requirements file> [package-index-options] ...
  pip install [options] [-e] <vcs project url> ...
  pip install [options] [-e] <local project path> ...
  pip install [options] <archive url/path> ...

no such option: --update

@neuronalX
Copy link
Collaborator

The command
pip install --pre reservoirpy
install the correct version in my case:

pip install --pre reservoirpy
...
Installing collected packages: reservoirpy
Successfully installed reservoirpy-0.3.0b2

Why is the behaviour different?

PS: in both cases it was under Mac OS

@nTrouvain
Copy link
Collaborator

nTrouvain commented Dec 7, 2021

@neuronalX Yes thank you, the option is called --upgrade. I will edit my comment.
@neuronalX if you run the command with --pre the first time, then pip will install the pre-release. The problem comes from the fact that @cbrissaud ran the command twice, without forcing the upgrade in between. pip only reinstalls a package if a different version is explicitely specifyed, if it is not in cache or if the --upgrade option is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants