Is gpt-2 unusable with python? - python

I was following this tutorial and ran across an issue while using train.py. the issue says
Exception has occurred: ModuleNotFoundError
No module named 'tensorflow.contrib'
File "F:\PythonFiles\Post Generator\gpt-2\src\model.py", line 3, in <module>
from tensorflow.contrib.training import HParams
I searched a lot on the internet and it turns out that tensorflow.contrib has been depreceated. So is there an alternate way to do so or the gpt-2 is not usable with python?
I also tried
pip install tensorflow==1.15
ERROR: Could not find a version that satisfies the requirement tensorflow==1.15 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0)
ERROR: No matching distribution found for tensorflow==1.15

try this :
pip install tensorflow-gpu==1.15.0
pip install 'tensorflow-estimator<1.15.0rc0,>=1.14.0rc0' --force-reinstall

Related

Trying to install Calendar.py

How can I get the library for calendar.py? I'm new to this.
I tried installing it and got the following error...
pip3 install calendar.py
Collecting calendar.py
Could not find a version that satisfies the requirement calendar.py (from versions: )
No matching distribution found for calendar.py
You don't install this module at all. It's part of the standard lib. Do you get an error when you try import calendar

Couldn't install tableauhyperapi python module

I'm trying to install tableauhyperapi python module on macOS M1 with simple pip install tableauhyperapi, but facing the following error:
ERROR: Could not find a version that satisfies the requirement tableauhyperapi (from versions: none)
ERROR: No matching distribution found for tableauhyperapi
Tried the same install for Ubuntu 18.04 and was facing the same result.

ERROR: Could not find a version that satisfies the requirement kerastuner (from versions: none) - PyCharm

Attempting to install keras_tuner for hyperparameter and in my attempt to install the package, it gives me this error:
ERROR: Could not find a version that satisfies the requirement kerastuner (from versions: none)
ERROR: No matching distribution found for kerastuner
I've used terminal pip install method along with the three different names for keras tuner, as I want to use the RandomSearch function. What am I doing wrong? Am I using the wrong name? In the python interpreter, when attempting to install the name it only comes up as "kerastuner" but has no versions to choose from.

How do I install BigArtm on Windows?

There is a link to install BigArtm on https://bigartm.readthedocs.io/en/v0.8.0/download.html, but it just doesn't work. I have tried to install it by pip and it gave me an error:
ERROR: Could not find a version that satisfies the requirement bigartm (from versions: none)
ERROR: No matching distribution found for bigartm
I now use python39, but I also tried same step with python38 and python37. Nothing works. Maybe there is another way of installing BigArtm?
Thank you!!!

ERROR: No matching distribution found for tensorflow==1.7.1 (from unityagents)

Tried to install unityagents agents using pip install unityagents command but I'm getting this error:
ERROR: No matching distribution found for tensorflow==1.7.1 (from unityagents)
Im using tensorflow version 2.2.1
It looks like the pypi release you're installing is around 2 years old.
The way you're supposed to install the package from the mlagents package instead. See the full instructions.

Categories

Resources