windows平台应用/开发python:
1. windows平台下搭建简单的python环境:
2. 安装所需模块:
右键管理员打开command prompt:
pip3 install scipy
pip3 install matplotlib
pip3 install wxpython
pip3 install pyyaml
pip3 install seaborn
pip3 install colorama
pip3 install Cython
pip3 install pyknotid
3. 下载并安装visual studio code编辑器:
4. 下载并安装git:
在最后一步finish后,打开git bash,输入:
$ git config --global user.name "Your Name"
$ git config --global user.email "email@example.com"
5. 用git下载gtihub仓库:
git clone 仓库中的指定文件(此方法还是会下载整个项目,如果仓库较大,会耗时较长,但最后出现在本地项目文件下里只有需要的那个文件夹存在。类似先下载,再过滤。):
具体操作:
在目标文件夹下打开git bash;
zhangjunchuan@DESKTOP-D2MQTEL MINGW64 ~/workplace/src
$ git init
Initialized empty Git repository in C:/Users/zhangjunchuan/workplace/src/.git/
zhangjunchuan@DESKTOP-D2MQTEL MINGW64 ~/workplace/src (master)
$ git remote add -f origin https://github.com/XXX/YYY.git
Updating origin
remote: Enumerating objects: 429, done.
remote: Counting objects: 100% (429/429), done.
remote: Compressing objects: 100% (280/280), done.
remote: Total 7674 (delta 258), reused 282 (delta 140), pack-reused 7245
Receiving objects: 100% (7674/7674), 231.83 MiB | 96.00 KiB/s, done.
Resolving deltas: 100% (4890/4890), done.
From https://github.com/XXX/YYY
* [new branch] autotest -> origin/autotest
* [new branch] master -> origin/master
* [new branch] multi -> origin/multi
* [new branch] v1.0 -> origin/v1.0
zhangjunchuan@DESKTOP-D2MQTEL MINGW64 ~/workplace/src (master)
$ git config core.sparseCheckout true
zhangjunchuan@DESKTOP-D2MQTEL MINGW64 ~/workplace/src (master)
$ echo "subfolder_name/sub_subfolder" >> .git/info/sparse-checkout
zhangjunchuan@DESKTOP-D2MQTEL MINGW64 ~/workplace/src (master)
$ git pull origin autotest
From https://github.com/XXX/YYY
* branch autotest -> FETCH_HEAD
6. 从wxFormBuilder的github页面下载release 3.6.1的windows安装exe程序,双击打开安装即可使用。
7. code UTF8转码问题:
在windows下,需要把coding UTF8全部替换为coding UTF-8