Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 175 Vote(s) - 3.49 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing specific package version with pip

#11
One way, as suggested in [this post][1], is to mention version in `pip` as:

pip install -Iv MySQL_python==1.2.2

i.e. Use `==` and mention the version number to install only that version. `-I, --ignore-installed` ignores already installed packages.

[1]:

[To see links please register here]

Reply

#12
dependency packaging has had a new release, wherein it has dropped LegacyVersion from its codebase
The quick solution might be pin packaging==21.3
Reply

#13
**TL;DR**:

**Update as of 2022-12-28**:

`pip install --force-reinstall -v`

For example: `pip install --force-reinstall -v "MySQL_python==1.2.2"`

What these options mean:

- `--force-reinstall` is an option to reinstall all packages even if they are already up-to-date.
- `-v` is for verbose. You can combine for even more verbosity (i.e. `-vv`) up to 3 times (e.g. `--force-reinstall -vvv`).

Thanks to [@Peter][1] for highlighting this (and it seems that the context of the question has broadened given the time when the question was first asked!), [the documentation for Python][2] discusses a caveat with using `-I`, in that it can break your installation if it was installed with a different package manager or if if your package is/was a different version.

---

Original answer:

- `pip install -Iv` (i.e. `pip install -Iv MySQL_python==1.2.2`)

---

What these options mean:

- `-I` stands for `--ignore-installed` which will ignore the installed packages, overwriting them.
- `-v` is for verbose. You can combine for even more verbosity (i.e. `-vv`) up to 3 times (e.g. `-Ivvv`).

For more information, see `pip install --help`

First, I see two issues with what you're trying to do. Since you already have an installed version, you should either uninstall the current existing driver or use ``pip install -I MySQL_python==1.2.2``

However, you'll soon find out that this doesn't work. If you look at pip's installation log, or if you do a ``pip install -Iv MySQL_python==1.2.2`` you'll find that the PyPI URL link does not work for MySQL_python v1.2.2. You can verify this here:

[To see links please register here]


The download link 404s and the fallback URL links are re-directing infinitely due to sourceforge.net's recent upgrade and PyPI's stale URL.

So to properly install the driver, you can follow these steps:

pip uninstall MySQL_python
pip install -Iv

[To see links please register here]



[1]:

[To see links please register here]

[2]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through