Pip3 install numpy=1.23.5 # Using -force-reinstall Pip3 install numpy=1.23.5 # uninstalling the existing version and installing version 1.23.5 of Numpy Look at the following: # installing numpy version 1.23.5 If you are using pip3, to install a specific version of Numpy, you can use all the above commands replacing pip by pip3. Use the following command: pip install -ignore-installed numpy=1.23.5 When you are using pip3 It's a good option when you are using virtual env. The -ignore-installed option ignores the already installed package and its dependencies, overwrites installed files. The above command will install numpy version 1.23.5. Pip install -force-reinstall numpy=1.23.5 The -force-reinstall option first uninstall (if already installed) and then install the specific or current version. The above command will uninstall the existing version and install NumPy version 1.23.5.Īnother way to install a specific version of NumPy (if you have already installed any version) is using -force-reinstall. So first uninstall it and then install the specific version. This option is best when you have already installed NumPy. Option 1: Uninstall existing version and then install specific version Note: Please note that each option has some pros and cons. If you have already installed NumPy and want to install a specific version of it, you can do any of the following options. To install version 1.21.5, use the following command: pip install numpy=1.21.5 NumPy is Already Installed To install NumPy version 1.23.5, use the following- pip install numpy=1.23.5 If you are installing numpy for first time or have uninstalled the previous version, use the following syntax to install a specific version of NumPy. If you have a virtual env and want to override the installation without uninstalling, use "-ignore-installed", e.g., " pip install -ignore-installed numpy=1.23.5". If you have already installed a specific version of NumPy and want to install another version, use "-force-reinstall" e.g., " pip install -force-reinstall numpy=1.23.5". If you have already installed NumPy, the best option to install a specific version is to first uninstall and then install it. For example, " pip install numpy=1.23.5". To install a specific version of NumPy using PIP, use double equal (=) sign. In this post, we will learn how to install a specific version of NumPy using Pip.
0 Comments
Leave a Reply. |