pip

pip is not installing my data_files. But easy_install does

余生长醉 提交于 2021-02-20 19:16:20
问题 This is going to be a short question. The source is here: https://github.com/exhuma/grc And the title explains my problem ;) I registered and uploaded the package to pypi . Now if I run easy_install grc , it works as expected. But if I run pip install grc , it installs properly, but does not install the data_files. I don't see why this is happening. Any ideas? 回答1: Maybe the files aren't installed in the path you expect. In Ubuntu 11.10, I see them under /usr/local/configs as it can be seen

ImportError: No module named SpeechRecognition

冷暖自知 提交于 2021-02-20 18:56:06
问题 My code is import SpeechRecognition as sr # obtain audio from the microphone r = sr.Recognizer() with sr.Microphone() as source: print("Say something!") audio = r.listen(source) # recognize speech using Microsoft Bing Voice Recognition BING_KEY = "Somevalue" # Microsoft Bing Voice Recognition API keys 32-character lowercase hexadecimal strings try: print("Microsoft Bing Voice Recognition thinks you said " + r.recognize_bing(audio, key=BING_KEY)) except sr.UnknownValueError: print("Microsoft

pip command not found after installed it

佐手、 提交于 2021-02-20 16:16:25
问题 I'm stuck with an issue. I have a Python script that I would like to run on my OSX but seems that I crossed on many issues. To run the script I should have both Python and Moviepy installed. To install Moviepy I used this command: sudo pip install moviepy The response was: sudo: pip: command not found So I tried to install pip, with the command: sudo easy_install pip And got this answer: Searching for pip Best match: pip 9.0.1 Processing pip-9.0.1-py2.7.egg pip 9.0.1 is already the active

pip command not found after installed it

江枫思渺然 提交于 2021-02-20 16:16:05
问题 I'm stuck with an issue. I have a Python script that I would like to run on my OSX but seems that I crossed on many issues. To run the script I should have both Python and Moviepy installed. To install Moviepy I used this command: sudo pip install moviepy The response was: sudo: pip: command not found So I tried to install pip, with the command: sudo easy_install pip And got this answer: Searching for pip Best match: pip 9.0.1 Processing pip-9.0.1-py2.7.egg pip 9.0.1 is already the active

解决 ‘Could not fetch URL https://pypi.python.org’的问题

旧街凉风 提交于 2021-02-20 13:31:12
【前提】: win10下python3和python2共存环境,但是环境变量只配置了python3 【问题】: 用pip安装一个包 执行pip2 install xxx的时候报错 Fatal error in launcher: Unable to create process using '"' 执行pip3 install xxx的时候报同样的错误 Fatal error in launcher: Unable to create process using '"' 【解决】: python2 -m pip install XXX python3 -m pip install XXX 报了新的错误 : Could not fetch URL https://pypi.org/simple/xlsxwriter/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/xlsxwriter/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]

nginx + tomcat + https配置

我的梦境 提交于 2021-02-20 08:05:23
nginx + tomcat + https配置 模式: 客户端 ---https -----> nginx ----- http ------> tomcat 浏览器和 Nginx 之间走的 HTTPS 通讯,而 Nginx 到 Tomcat 通过 proxy_pass 走的是普通 HTTP 连接。 证书申请: 在有域名的服务器上部署申请证书的程序: 备注:python 版本在2.6以上 1. #mkdir ~/cert/ wget https://dl.eff.org/certbot-auto chmod a+x certbot-auto 2、mkdir ~/.pip pip.conf配置文件: [global] index-url=https://pypi.doubanio.com/simple/ [install] trusted-host=pypi.doubanio.com 3、安装申请证书所依赖的工具 cd ~/cert #./certbot-auto 安装过程可能需要比较长的时间,有时可能是网络连接不好执行不成功 You should test your configuration at: https://www.ssllabs.com/ssltest/analyze.html?d=www.lelaohui.com.cn -----------------------

jumpserver_跳板机实操

孤街醉人 提交于 2021-02-20 05:42:42
首先,jumpserver是什么呢? Jumpserver 是一款由Python编写开源的跳板机(堡垒机)系统,实现了跳板机应有的功能。基于ssh协议来管理,客户端无需安装agent。 特点: 完全开源,GPL授权 Python编写,容易再次开发 实现了跳板机基本功能,认证、授权、审计 集成了Ansible,批量命令等 支持WebTerminal Bootstrap编写,界面美观 自动收集硬件信息 录像回放 命令搜索 实时监控 批量上传下载 jumpserver 3.0 安装 相对于 jumpserver 2.0 版本,在新的版本 3.0 中取消了LDAP授权,取而代之的是ssh进行推送;界面也有所变化,功能更完善,安装更简单,不像 2.0 的版本,难住了好多人。下面通过两台主机来搭建 jumpserver堡垒机! Centos 6.5 x86_64 关闭 iptables,关闭 selinux jumpserver:192.168.1.200 clients:192.168.1.210 ps:操作只针对 jumpserver,clients 不会进行操作,只是环境需求。 一、安装依赖包 yum -y install epel-release yum clean all && yum makecache yum -y update yum -y install git python

Docker入门之docker-compose

我是研究僧i 提交于 2021-02-20 02:50:19
  参考:https://blog.51cto.com/9291927/2310444   一,Docker-compose简介   1,Docker-compose简介   Docker-Compose项目是Docker官方的开源项目,负责实现对Docker容器集群的快速编排。 Docker-Compose将所管理的容器分为三层,分别是工程(project),服务(service)以及容器(container)。Docker-Compose运行目录下的所有文件(docker-compose.yml,extends文件或环境变量文件等)组成一个工程,若无特殊指定工程名即为当前目录名。一个工程当中可包含多个服务,每个服务中定义了容器运行的镜像,参数,依赖。一个服务当中可包括多个容器实例,Docker-Compose并没有解决负载均衡的问题,因此需要借助其它工具实现服务发现及负载均衡。 Docker-Compose的工程配置文件默认为docker-compose.yml,可通过环境变量COMPOSE_FILE或-f参数自定义配置文件,其定义了多个有依赖关系的服务及每个服务运行的容器。 使用一个Dockerfile模板文件,可以让用户很方便的定义一个单独的应用容器。在工作中,经常会碰到需要多个容器相互配合来完成某项任务的情况。例如要实现一个Web项目,除了Web服务容器本身

How to package Python Project into a standalone executable?

感情迁移 提交于 2021-02-20 02:27:32
问题 i wan't to release my python project, but when i send it to someone he is forced to install all the packages im using in my python project. Is there any way to pack it or something, because maybe there are some users who are not that familiar with pip or python. Regards 回答1: PyInstaller PyInstaller is a program that freezes (packages) Python programs into stand-alone executables, under Windows, GNU/Linux, Mac OS X, FreeBSD, Solaris and AIX. Its main advantages over similar tools are that

How to package Python Project into a standalone executable?

丶灬走出姿态 提交于 2021-02-20 02:26:54
问题 i wan't to release my python project, but when i send it to someone he is forced to install all the packages im using in my python project. Is there any way to pack it or something, because maybe there are some users who are not that familiar with pip or python. Regards 回答1: PyInstaller PyInstaller is a program that freezes (packages) Python programs into stand-alone executables, under Windows, GNU/Linux, Mac OS X, FreeBSD, Solaris and AIX. Its main advantages over similar tools are that