使用PIP安装TensorFlow时提示nose和tornado未安装的问题
Hey there, let's tackle this dependency error you're running into while installing TensorFlow. The error messages make it clear: matplotlib 1.3.1 requires two missing packages: nose and tornado. Here's a straightforward fix to get you back on track:
Step 1: Install the missing dependencies first
Run this command to install both nose and tornado in one go using pip:
pip install nose tornado
Note: If you're working with Python 3 and your system defaults to Python 2 for pip, use pip3 instead to target the correct environment.
Step 2: Reinstall TensorFlow
Once the dependencies are installed successfully, try installing TensorFlow again:
pip install tensorflow
Again, use pip3 install tensorflow if you're using Python 3.
Bonus: Avoid future issues by upgrading matplotlib
Matplotlib 1.3.1 is pretty outdated, which might lead to more compatibility headaches down the line. If you want to prevent similar problems, consider upgrading matplotlib to a newer version:
pip install --upgrade matplotlib
内容的提问来源于stack exchange,提问作者sameer

