install

康少带你python项目从部署到上线云服务器

喜欢而已 提交于 2020-01-24 19:45:33
首先,服务器要安装nginx和mysql,网站文件建议放在/usr/local/www,环境python3.6+mysql5.7,阿里云的服务器可以用公共镜像有一个配置好的,不然就自己装一下环境吧。 本项目名称:loginOrRegister 对于小白来说首先我们需要干的一件事情就是安置与配置nginx下面就是nginx的配置 1.nginx配置 安装nginx # gcc 安装 yum install gcc-c++ # PCRE pcre-devel 安装 yum install -y pcre pcre-devel # zlib 安装 yum install -y zlib zlib-devel # OpenSSL 安装 yum install -y openssl openssl-devel #进入指定目录 cd /usr/local #下载nginx包,如果没有wget命令,就yum install wget安装即可 wget -c https://nginx.org/download/nginx-1.10.1.tar.gz # 解压 tar -zxvf nginx-1.10.1.tar.gz # 配置 cd nginx-1.10.1 ./configure # 编译 make make install # 启动,停止nginx cd /usr/local/nginx

nvm,nrm和yarn

笑着哭i 提交于 2020-01-24 16:31:07
nvm Node Version Management nvm list 查看所有已安装的 node 版本 nvm install 版本号 安装指定版本的 node nvm use 版本号 切换到指定版本号 nvm proxy 代理地址 配置代理进行下载 nrm(node registry manager) 使用淘宝的 cnpm 镜像源下载: npm install --save express --registry=https://registry.npm.taobao.org 第一: npm install -g nrm Yarn Yarn 是一个 Facebook 开源的一个类似于 npm 的一个包管理工具,也就是 npm 能做的, yarn 也能做。 安装: npm install -g yarn 使用: # npm init yarn init # npm install --save 包名 yarn add 包名 # 离线安装 yarn add 包名@版本号 --offline # npm install yarn install # npm uninstall 包名 yarn remove 包名 # npm install -g 包名 yarn global add 包名 # npm uninstall -g 包名 yarn global remove 包名 来源:

Installing PyQt4 in a virtualenv

浪尽此生 提交于 2020-01-24 15:11:09
问题 I am trying to install PyQT4 in a virtualenv. I am running Python3.2.1. Here's what I've done so far: sudo apt-get install qt4-dev-tools this worked fine I downloaded PyQt-x11-gpl-4.9.5 and sip-4.14 Inside the virtualenv I installed sip. No errors came up. When I try to call: python3.2 configure.py for my PyQt it lets me accept the licence, does a bunch of stuff without errors then says: Generating the C++ source for the QtCore module... sip: Usage: sip [-h] [-V] [-a file] [-b file] [-c dir]

Installing PyQt4 in a virtualenv

旧城冷巷雨未停 提交于 2020-01-24 15:11:04
问题 I am trying to install PyQT4 in a virtualenv. I am running Python3.2.1. Here's what I've done so far: sudo apt-get install qt4-dev-tools this worked fine I downloaded PyQt-x11-gpl-4.9.5 and sip-4.14 Inside the virtualenv I installed sip. No errors came up. When I try to call: python3.2 configure.py for my PyQt it lets me accept the licence, does a bunch of stuff without errors then says: Generating the C++ source for the QtCore module... sip: Usage: sip [-h] [-V] [-a file] [-b file] [-c dir]

Application not running on Android device

烈酒焚心 提交于 2020-01-24 14:35:31
问题 My application is running properly on emulator but not on device. Earlier I have run the same app on device many a times. I have turned USB- Debugging on my device, also set debuggable to true in manifest. When I try to use command adb devices, it's showing me an empty list of devices. Has anybody encountered same problem anytime? Thanx in advance. 回答1: Keep ur phone connected with the system and then restart ur system. I think it will work then. 回答2: While connecting your device to desktop

Application not running on Android device

好久不见. 提交于 2020-01-24 14:34:45
问题 My application is running properly on emulator but not on device. Earlier I have run the same app on device many a times. I have turned USB- Debugging on my device, also set debuggable to true in manifest. When I try to use command adb devices, it's showing me an empty list of devices. Has anybody encountered same problem anytime? Thanx in advance. 回答1: Keep ur phone connected with the system and then restart ur system. I think it will work then. 回答2: While connecting your device to desktop

Red5 1.0.7M10: Could not find or load main class Files

丶灬走出姿态 提交于 2020-01-24 14:23:07
问题 I was going to take a look at the latest 1.0.7 on a Windows 2012 server and downloaded the latest .zip. I extracted the .zip into my normal Red5 directory (d:\program files (x86)\Red5) and tried to run red5.bat and got the error, "Could not find or load main class Files". However, RED5_HOME and JAVA_HOME have not changed. What did I miss? Output of the red5.bat file: D:\Program Files (x86)\Red5>if NOT DEFINED RED5_MAINCLASS set RED5_MAINCLASS=org .red5.server.Bootstrap D:\Program Files (x86)

how check is .NET framework installed or not

岁酱吖の 提交于 2020-01-24 11:43:28
问题 I want to develop a .NET application in c# but first i need to check that the .NET framework is installed , because i don't want user see any error. so is there any vc++ code that only use MFC in a static Library to check if .NET framework is installed ? 回答1: You can use the registry to check about .net framework and it's version, Either you you use VC++ or some other language that can handle registry.. Check Micrsoft Knowledge Base Article - How to determine which versions and service pack

Mxnet C++接口安装以及收集到的资料整理

为君一笑 提交于 2020-01-24 10:53:57
Mxnet C++接口 install C++接口需要从源码编译安装 跟着教程来也很简单(无脑复制粘贴) ubuntu安装地址 官方的 STEP1 里安装了 OpenBLAS 数学库(后面STEP3是三个命令选一个,我选 For a CPU-only build with OpenBLAS math library run: ) 跟随官网教程做到 STEP3 时候需要注意的点: 运行cmake时候要添加参数 -USE_CPP_PACKAGE=1 ,这样才会开启C++接口,比如这样: rm -rf build mkdir -p build && cd build cmake -GNinja \ -DUSE_CUDA = OFF \ -DUSE_MKL_IF_AVAILABLE = OFF \ -DCMAKE_BUILD_TYPE = Release \ -USE_CPP_PACKAGE = 1 \ .. ninja 如果是笔记本推荐直接用CPU的跑就行了,如果选GPU,我没折腾过不知道会不会有什么坑。。。我选择的是 For a CPU-only build with OpenBLAS math library run: 因为 STEP1 里安装了 完成编译之后,就会生成.so和.a两个文件,文件位置可能在lib里(我跟着mac的教程是生成在lib里)也有可能在build文件夹里

Appium自动化测试框架研究(2)——搭建IOS环境

偶尔善良 提交于 2020-01-24 07:03:08
今天的文章讲 iOS 的A ppium 环境搭建。 对于 iOS 而言,只能在 Mac 笔记本上安装 Appium ,以及所需要的各种组件。 也许有人会问,能否在 Windows 系统上使用 Appium 测试 iOS 手机,这不就不用花钱买 Mac 了吗?答案是不可以,因为 Appium 的本质是把我们编写的自动化测试脚本,翻译成 Mac 中 UIAutomator 的脚本,所以只能 Mac 来做, W indows 系统搞不定。但是,你可以装黑苹果来解决这个问题。 我们这篇文章不提黑苹果,而是介绍怎么在 mac 笔记本上安装能运行 iOS 自动化测试的 appium 。 以下的 6 个步骤,在上一篇文章我们已经介绍过,请参考上一篇文章。。 1 )安装 Node 。 2 )使用 Node 下载 Appium Server 。 3 )下载并安装 Appium Desktop. 4 )下载并安装 Python 3 。 5 )使用 pip 下载 Appium Client 。 6 )安装 Appium Doctor 。 为什么说 iOS 支持 Appium 麻烦呢,因为还要执行下列的步骤: 1 )安装最新版的 XCode ,去 App Store 下载并安装最新版即可 要确保 XCode 的版本和 IPhone 的版本是兼容的,否则就升级系统。 2 )安装 Xcode Command