《个人纪录》 阿里云服务器Centos环境做后台Android开发

仅方便自己回顾!!!

  • 下载Xshell和Xftp,方便文件管理。
  • 使用Xshell连接服务器,并实现文件的传输。
  • 1、出现问题:ImportError: No module named tensorflow
  • 没有tensorflow的组件,解决方法:pip install --upgrade tensorflow

  • 2、出现问题:No module named six.moves

  • 解决该组件方法:pip install awscli --upgrade --ignore-installed six

  • 3、出现问题:RequestsDependencyWarning: urllib3 (1.24.1) or chardet (3.0.4) doesn't match a supported version!

  • 解决版本不匹配方法(先卸载后安装):

  • pip uninstall urllib3;pip uninstall chardet;pip uninstall requests;

  • pip install urllib3;pip install chardet;pip install requests;

  • 4、出现的问题:SyntaxError: Non-ASCII character '\xe5' in file *******

  • 解决语法问题(原因出现了中文字符):

    在Python源文件的最开始一行,加入一句:

    # coding=UTF-8(等号换为”:“也可以)

    或者

    # -*- coding:UTF-8 -*-

  • 5、出现的问题:ImportError: No module named PIL.Image

  • 解决这个组件问题:pip install Image

  • 6、出现的问题:This version of Django requires Python 3.5, but you're trying to install it on Python 2.7.

  • 解决版本不对的问题:升级方法一升级方法二

  • 7、接着出现的问题是使用pip2进行安装后还需要再重新安装一遍,期间有些麻烦,接下来打算安装Anaconda。

下面是安装Anaconda,方便操作不需要再安装别的:

  • 第一种是在控制台下安装的方法:链接
  • 第二种是先下载Anaconda文件,然后再进行上传到服务器,后再安装。
  1. 出现的问题:Anaconda3 安装报错 bunzip2: command not found。解决方法:安装bzip2
  2. 出现的问题:显示没有tensorflow模块。解决方法:pip install tensorflow;
  3. 接上一个问题:显示“Could not find a version that satisfies the requirement tensorfllow (from versions: )No matching distribution found for tensorflow”。原因是因为当前的tensorflow还不能在该版本的Python下支持,使用conda install python=3.5更改python版本为3.5。
  4. 安装Opencv-python以及出现的问题和解决方法:链接
  5. 出现问题:libstdc++.so.6: version `GLIBCXX_3.4.21' not found;解决方法:链接
  6. 出现问题:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA;解决方法:链接

猜你喜欢

转载自blog.csdn.net/chao_shine/article/details/85029023
今日推荐