Code Monkey home page Code Monkey logo

Comments (3)

Wrench-wench avatar Wrench-wench commented on June 25, 2024

I've had a similar issue with train.py calling tensorflow.contrib

Solved by running python -m pip install tensorflow==1.14 from inside the python venv I was using.

Ubuntu 18.04 LTS
Tensorflow 1.14
Python 3.6.9

Hope this helps with your issue.

from word-rnn-tensorflow.

sp00ck avatar sp00ck commented on June 25, 2024
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement tensorflow==1.14 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0)
ERROR: No matching distribution found for tensorflow==1.14

$uname -a
Linux 5.7.12-200.fc32.x86_64 #1 SMP Sat Aug 1 16:13:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

from word-rnn-tensorflow.

Wrench-wench avatar Wrench-wench commented on June 25, 2024

Interesting. The only way I could replicate the error message is by misspelling the package name, but by your reply I can see it was spelt correctly.

I installed a fresh copy of Ubuntu 18.04 on a machine and setup Word-RNN-Tensorflow.
Here are all the commands I used to set it up in a Python venv, hopefully one of these are your fix.

# Update the OS software and grab some Python packages. 
sudo apt update && sudo apt upgrade -y
sudo apt install python3-dev python3-pip python3-venv git

# Make a directory and start a Python virtual environment in it
mkdir projectfolder 
python3 -m venv --system-site-packages projectfolder/
source projectfolder/bin/activate

# Move in to the folder, get the needed Python modules and clone the git 
cd projectfolder/
pip install --upgrade pip setuptools tensorflow==1.14
git clone https://github.com/hunkim/word-rnn-tensorflow.git

# Start Word-RNN using the provided example set
cd word-rnn-tensorflow
python train.py

Good luck!

EDIT: Forgot about markdown, changed formatting.

from word-rnn-tensorflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.