家用小路由器静态路由

家用小路由静态路由设置失败

家里串联了多级路由,一级路由是netcore-nr285p,发射ap ubnt-nano-station-m2, ap-clinet -斐讯 一个停产的网桥,这三个设备都可以这样设置静态路由,而且上级,访问下级路由管理界面都成功

Read More

anaconda-vscode-pycharm

3 anaconda 配置

anaconda 安装的时候没有选择添加到环境变量,所以windows自带的cmd无法运行python命令,需要添加如下的3个变量,如果第三个没有添加,pip的时候会报ssl 模块无法找到的如下错误。

1
2
3
4
5
pip运行报错
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting virtualenv
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/virtualenv/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/virtualenv/

Read More

atom-windows 默认快捷键

Atom用了PlatformIO IDE Terminal 后,总是用鼠标来切换,感觉有点割裂,久了手痛,当然主要是没钱….. 于是搜索了一下,参考这个网址:https://yanyinhong.github.io/2017/07/23/Atom-keyboard-shortcuts/

技巧就是用万能的

1
Ctrl + Shift + P	打开Atom的命令面板(Command Palette)

比如,我不知道怎么从文本编辑器切换到PlatformIO IDE Terminal ,于是就 Ctrl + Shift + P 在搜索框里面输入 platfrom 于是结果出来了:

Read More

virtualenvwrapper安装

centos7.4 下面virtualenvwrapper 的安装使用

因为centos7默认的python是python2.7 ,在安装python3后再安装虚拟环境曾经让我困扰了很久,做个记录

困扰的原因是我的系统安装了3个python,一个系统自带的python2.7,一个pyhton3.4,一个python3.6,然而我并不知道安装了这个python3.4,更悲剧的是默认的python3就是用的这个python3.4做的链接,而我一直以为用的是python3.6做的链接,所以我pip3安装了virtualenv,和virtualenvwrapper后一直报如下错误, 因为安装到的是pyhton3.6目录下,而我默认的python3是链接到python3.4。

1
If Python could not import the module virtualenvwrapper.hook_loader, check that virtualenvwrapper has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly.

然后我修改 export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 无效,找到 virtualenvwrapper.sh 修改后也一直报同样的错误,在折腾很久后,不经意进入/usr/bin/ 里面查看才知道原因。

Read More