You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

InstallPython_EN.md 2.6 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # Installing Python Environments
  2. 由于Python的库比较多,并且依赖关系比较复杂,所以请仔细阅读下面的说明,使用下面的说明来安装能够减少问题的可能。*不过所列的安装方法,里面存在较多的细节,也许和你的系统并不适配,所以会遇到问题。如果遇到问题请通过搜索引擎去查找解决的办法*,通过这个方式锻炼自己解决问题的能力。
  3. 可以参考后面所列的`1.Winodws`或者`2.Linux`章节所列的将Python环境安装到计算机里。如果想一次性把所有的所需要的软件都安装到机器上,可以在本项目的根目录下执行下面的命令,需要Python 3.5版本,如果出现问题,则可以参考`requirements.txt`里面所列的软件包名字,手动一个一个安装。
  4. ```
  5. pip install -r requirements.txt
  6. ```
  7. ## 1. Windows
  8. ### 安装Anaconda
  9. 由于Anaconda集成了大部分的python包,因此能够很方便的开始使用。由于网络下载速度较慢,因此推荐使用镜像来提高下载的速度。镜像的使用方法可以参考[Anaconda镜像的说明文档](https://mirrors.tuna.tsinghua.edu.cn/help/anaconda)
  10. 在这里找到适合自己的安装文件,然后下载
  11. https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
  12. 设置软件源 https://mirror.tuna.tsinghua.edu.cn/help/anaconda/
  13. ```
  14. conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  15. conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  16. conda config --set show_channel_urls yes
  17. ```
  18. ### 安装Pytorch
  19. ```
  20. conda install pytorch -c pytorch
  21. pip3 install torchvision
  22. ```
  23. ## 2. Linux
  24. ### 安装pip
  25. ```
  26. sudo apt-get install python3-pip
  27. ```
  28. ### 设置PIP源
  29. ```
  30. pip config set global.index-url 'https://mirrors.ustc.edu.cn/pypi/web/simple'
  31. ```
  32. ### 安装常用的包
  33. ```
  34. pip install -r requirements.txt
  35. ```
  36. 或者手动安装
  37. ```
  38. sudo pip install scipy
  39. sudo pip install scikit-learn
  40. sudo pip install numpy
  41. sudo pip install matplotlib
  42. sudo pip install pandas
  43. sudo pip install ipython
  44. sudo pip install jupyter
  45. ```
  46. ### 安装pytorch
  47. 到[pytorch 官网](https://pytorch.org),根据自己的操作系统、CUDA版本,选择合适的安装命令。
  48. 例如Linux, Python3.5, CUDA 9.0:
  49. ```
  50. pip3 install torch torchvision
  51. ```
  52. ## 3. [Python技巧](python/)
  53. - [pip的安装、使用等](python/pip.md)
  54. - [virtualenv的安装、使用](python/virtualenv.md)
  55. - [virtualenv便捷管理工具:virtualenv_wrapper](python/virtualenv_wrapper.md)

机器学习越来越多应用到飞行器、机器人等领域,其目的是利用计算机实现类似人类的智能,从而实现装备的智能化与无人化。本课程旨在引导学生掌握机器学习的基本知识、典型方法与技术,通过具体的应用案例激发学生对该学科的兴趣,鼓励学生能够从人工智能的角度来分析、解决飞行器、机器人所面临的问题和挑战。本课程主要内容包括Python编程基础,机器学习模型,无监督学习、监督学习、深度学习基础知识与实现,并学习如何利用机器学习解决实际问题,从而全面提升自我的《综合能力》。