How to download previous version of Werkzeug - python

How do I download previous version of Werkzeug from a trusted site?
Here is what I have tried:
1) I went to this link:
http://werkzeug.pocoo.org/docs/0.9/installation/#installing-a-released-version
and clicked on the "Download Page" link.
It took me to the 0.10.4 download page.
2) I googled "Werkzeug download 0.9" and only got references to 0.10. There was a download link to a versioneye.com site that I don't know if I can trust.
I need to download the previous version because 0.10.x dropped support for support for OpenSSL.
[edit] I have to download rather than install from pip because I don't have access to pip on the old machine I am installing on. It is old, hence the complications.
[edit] I had to use the older version because 0.10.x dropped support for the OpenSSL package in favor of ssl built into Python 2.7.9. I was stuck on Python 2.7.5 so I wanted to continue to use OpenSSL package. I think they made the right decision to drop support as the majority of people can upgrade to 2.7.9.

You can install an old package with pip:
pip install Werkzeug==0.9.6

Building on f43d65's comment, I have refined it to these steps which include making sure it is coming from a reliable source:
goto the official website: http://werkzeug.pocoo.org/
click link to official github account: https://github.com/mitsuhiko/werkzeug
click on releases tab: https://github.com/mitsuhiko/werkzeug/releases
Note: the instructions make sure that the download is coming from the official source.

go in pycharm settings and then in interprator click on + there in packages and then search for werkzeug there, after click on versions and choose old version. it did work for me.

Related

Is there any documentation about spyder reports?

I just found out about spyder-reports which can both generate the python code and the HTML output from the .mdw file. I installed it with pip, but then I didn't found any way to work with it. I am using spyder 4.1.3 with python 3.6.4, and nothing changed in the interface, opening a .mdw file doesn't seem to propose anything.. How does this plugin work?
Is there any documentation, examples, I could use to figure out how it works?
Unfortunately, no. According to their GitHub issues:
Sorry, this plugin is unmaintained now and it's not compatible with the latest release of Pweave. We'll come back to it after we release Spyder 4.
and
This plugin is unmaintained and not compatible with the latest release of Pweave. To help update it or see the status of that work, visit this link.
Your best bet at this time is to uninstall since the installation downgrades some packages:
pip uninstall spyder-reports
or
conda uninstall spyder-reports
Sources:
https://github.com/spyder-ide/spyder-reports/issues/76
https://github.com/nathancarter/spyder-reports/commit/5fcddd1503e17b5db8df6f0dbe7444f1698824a6

How to install specific versions of H2O

I need to install an older version of H2O because model loading doesn't work even if the versions are just one apart (3.26.0.2 vs. 3.26.0.3). I'm struggling to find a page from which I can find the download links. Why doesn't it exist? All software have an archive or older versions page for this. I also tried playing with the link to current version but no luck as it doesn't have a pattern you could guess.
So how can I install H2O 3.26.0.2 in Python (pip)?
Looked all over the web and documentation
model = h2o.load_model("H2O.model_name.zip")
Error: Found version 3.26.0.2, but running version 3.26.0.3
Request: POST /99/Models.bin/
data: {'dir': 'H2O.model_name.zip'}```
The Changes.md file is the easiest place to look for links to where you can download every version. Just search for the version you want (e.g. "3.26.0.2") and you will see the URL there.
Click on the link and it will bring you to the download page for that version and you can click on the "Install in Python" tab which will show some code like this that you can copy/paste into your terminal:
# The following command removes the H2O module for Python.
pip uninstall h2o
# Next, use pip to install this version of the H2O Python module.
pip install http://h2o-release.s3.amazonaws.com/h2o/rel-yau/2/Python/h2o-3.26.0.2-py2.py3-none-any.whl
The URLs are "predictable" but you have to know the name of the release as well as the version number to correctly guess the URL.
If you are installing h2o via pip, go to Release History page in the PyPi page for H2O. Look for the specific version you need and install that version based on the command provided over there. It should be similar to the following command.
pip install h2o==3.26.0.2

Who updates pip package versions?

I was having problems with one package not doing what I read in it's documentation, until I noticed that pip installed a outdated version.
On the pip package page it would seem like it was last update 2014, but when I installed, the package files were versioned mid 2013.
How does updating pip packages work and who should be doing it? The project maintainer (on github, or on pip pages?)?
All packages that can be downloaded with PIP are actually hosted on the Python Package Index. The Python organization collaborates with project maintainers to host the projects.
The problem with having outdated packages on pip that do not align with the documentation and current state on github can be really annoying. Despite that you did not ask for a workaround I would like to contribute one in case that other users might land on this page looking for such.
First uninstall the package you installed via pip before:
pip uninstall package
Next install the latest version directly from the github repo:
pip install git+https://github.com/user/package.git
The cool thing about this is that you can still manage your packages with pip but your not limited by what version is available on the Python Package Index.

Is the wrong version of pygame being installed?

I'm borrowing my friends mac and I've tried following instructions of installing python and pygame using homebrew and all that. Specifically following this video: https://www.youtube.com/watch?v=L0Cl4Crg7FE
And this post: http://www.reddit.com/r/pygame/comments/2bsqe4/installing_python3_and_pygame_os_x_mavericks_and/
I've successfully managed to install python 3.4.1 and a version of pygame from https://bitbucket.org/pygame/pygame
So I now start to test my program to see if it works. But it doesn't because it says pygame has no pygame.movie module, which I am using to play a video.
I've done all of my programming on my windows7 computer using python 3.4.0 and pygame version 1.9.2a0, and it worked perfectly fine. Anyone know how I can solve this problem?
According to the README on the github repo you linked:
You should definitely begin by installing a binary package for your system. The binary packages usually come with or give the information needed for dependencies. Choose an appropriate installer for your system and version of python from the pygame downloads page. http://www.pygame.org/download.shtml
And that line that I bold-faced seems to be the root of your problem: You didn't install the dependencies, so you don't have video support, so when you built from source, it skipped pygame.movie.
Unfortunately, they only have binaries for Python 2.x, and only for older versions of OS X, which means you can't actually follow those instructions, and you're doing the right thing by building it manually.
I don't see where they list these dependencies on the download page. There's a link to Installation Notes, but it's a 404. And the README in the BitBucket repo doesn't list them either. (I'm not 100% sure BitBucket is the right place to look—the download page sends you to an svn repo, which sends you to the BitBucket repo, but the GitHub repo looks newer and just as official—but the GitHub repo has the same info…)
So… you may need to read through config_darwin.py and config_unix.py. But my first guess is that it's SMPEG or maybe avformat that you're missing, because SMPEG is how you display video in SDL, and avformat is how you convert video from other formats to something SMPEG can handle. So, if you don't have those, use Homebrew or the SDL.org binary installers or whatever you prefer to add them, then clean-rebuild PyGame.

pip doesn't grab latest version of tweepy?

Using 'pip install tweepy' I get version 1.7.1 of tweepy which is quite old and certainly doesn't support oauth.
Has a new version of the package not been published?
It's still under active development. Do I need pull the source from GIT? I'm just surprised there isn't a newer package. Am I missing something?
Thanks.
1.7.1 is the latest version on pypi, and the last tag listed in on github. I'd say pip is doing exactly what it's supposed to be doing.

Categories

Resources