pip

ModuleNotFoundError: No module named 'pip' python3

老子叫甜甜 提交于 2021-01-25 06:25:20
问题 I can't use pip and I don't know why. The error I get is shown below: File "d:\python\lib\runpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, File "d:\python\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "D:\Python\Scripts\pip.exe\__main__.py", line 5, in <module> ModuleNotFoundError: No module named 'pip' If I try py -3.8 -m pip install I get D:\Python\python.exe: No module named pip . If I use get-pip nothing happens. If I try to

环境搭建

被刻印的时光 ゝ 提交于 2021-01-25 03:15:54
一、安装python   访问python.org/downloads/,选择要安装的Python版本,目前主流的有Python2.7和Python3系列。下载好安装程序后,并在运行它时选择复选框Add Python to PATH。这样就不需要手动添加环境变量。   安装好以后打开命令提示符(cmd),输入python,回车,看到这个表示安装成功了,可以看到Python的版本是3.6.3。 二、开发工具   python的开发工具有pycharm、sublime text、spyder以及自带的IDLE等等,其中pycharm是一款非常优秀的IDE,非常适合新手入门。pycharm分免费的社区版和收费的专业版,社区版已经能满足大部分需求,但是以后做项目如Django时还是不如专业版方便。 三、第一个python程序   创建好项目和python文件后就可以编写Python代码了。   使用python就会用到很多的三方库,创建虚拟环境的意义在于便于区分不同项目使用的三方库。创建好之后,创建py文件就可以编写python代码了。 准备工作: 1 、pip install virtualenv 2 、创建工程目录 mkdir proj, cd proj 创建 Windows 1、python - m venv env 2、进入env/ Scripts, 执行avtivate

How to specify authentication for Pip Project setup pip with extra-index-url in pip.ini (Windows) or pip.conf (Mac/Linux) on azure pipelines/artifacts

故事扮演 提交于 2021-01-24 18:49:28
问题 Azure Artifacts allows posting a module to an Artifactory that can then be installed by using pip by setting extra-index-url in pip.ini (Windows) or pip.conf (Mac/Linux) However, when using pip install, the system is asking for a user/password Is it possible to setup this inside pip.conf and / or even better use .ssh signatures? 回答1: Is it possible to setup this inside pip.conf and / or even better use .ssh signatures? What you met is expected behavior if it's the first time that you try to

How to specify authentication for Pip Project setup pip with extra-index-url in pip.ini (Windows) or pip.conf (Mac/Linux) on azure pipelines/artifacts

亡梦爱人 提交于 2021-01-24 18:40:32
问题 Azure Artifacts allows posting a module to an Artifactory that can then be installed by using pip by setting extra-index-url in pip.ini (Windows) or pip.conf (Mac/Linux) However, when using pip install, the system is asking for a user/password Is it possible to setup this inside pip.conf and / or even better use .ssh signatures? 回答1: Is it possible to setup this inside pip.conf and / or even better use .ssh signatures? What you met is expected behavior if it's the first time that you try to

How to specify authentication for Pip Project setup pip with extra-index-url in pip.ini (Windows) or pip.conf (Mac/Linux) on azure pipelines/artifacts

让人想犯罪 __ 提交于 2021-01-24 18:40:30
问题 Azure Artifacts allows posting a module to an Artifactory that can then be installed by using pip by setting extra-index-url in pip.ini (Windows) or pip.conf (Mac/Linux) However, when using pip install, the system is asking for a user/password Is it possible to setup this inside pip.conf and / or even better use .ssh signatures? 回答1: Is it possible to setup this inside pip.conf and / or even better use .ssh signatures? What you met is expected behavior if it's the first time that you try to

Avast blocks pip and Pyinstaller

偶尔善良 提交于 2021-01-24 11:57:09
问题 I'm making a Simple GUI Tkinter Program. I was going to compile my Program (with Pyinstaller) but Avast is blocking PIP. So I ignored it. When Compile was Finished. I run the compiled .exe program and the program are saying: failed to execute the script, Avast is blocking. How to fix this error and What am the issue? edit:now Avast is not blocking .exe(but blocking PIP) 回答1: I use avast as well. Avast sandboxes pipenv when installing a new package. Depending on what/if virtualenv your using.

Install Python geopandas failed

南笙酒味 提交于 2021-01-24 11:25:26
问题 I'm trying to install geopandas. Have the following setup: Windows-64 Anaconda2 (64-bit) Python 2.7 Have tried two things: 1) pip install geopandas This gives me the following error: WindowsError: [Error 126] The specified module could not be found and Command "python setup.py egg_info" failed with error code 1 in c:\users\username\appdata\local\temp\pip-install-_kgeyw\shapely\ The solutions to the similar problem here suggest that it's because of the slashes in the path being converted. Not

windows环境 python 与 cx_oracle 连接 记录

你。 提交于 2021-01-24 08:56:23
一、我的环境 OS: 64位 windows7 oracle client: instantclient_11_2 ,为了连接pl/sql,只能32为 python:python-3.5.4 32位 cx_oracle:cx_Oracle-5.3-11g.win32-py3.5 下载地址: https://pypi.python.org/pypi/cx_Oracle/5.3 下载低版本cx_Oracle版本 pycharm:pycharm-professional-2017.3.2 64位 二、安装备忘 (1)环境选择对了,很容易的事情,选不对,会遇到N多坑,我遇到了至少6种错误, 后来全部卸载, 选择了32位的python和相关版本,问题解决。 三种软件的位数要一致, 要选择对应的版本: cx_oracle \ python \ oracle client (关键是oci.dll ) oracle 数据库,pccharm等无所谓。 (3) python3.4安装后,自带pip, 但安装 cx_oracle包时, 不要 pip install cx_oracle , 最好下载 exe可执行的cx_oracle版本, 安装编译后的whl文件,也会有点问题。 cx_oracle 可执行文件安装,会自动拷贝到 python环境 site-package目录。 (4)oracle

How to use pip in virtualenv

我与影子孤独终老i 提交于 2021-01-24 08:47:50
问题 I'm trying to install Django and I've created a virtual environment for this project (I'm new in virtualenv). I've created the env this way: virtualenv path which seems to work properly since there is a new folder "env" in my project folder. Now I tried to install Django into this virtualenv . \PycharmProjects\Django_tutorial>env/bin/pip install django 'env' is not recognized as an internal or external command, operable program or batch file. So I've checked the env folder and there are these

What is the easiest way to remove all packages installed by pip?

喜欢而已 提交于 2021-01-24 08:37:06
问题 I'm trying to fix up one of my virtualenvs - I'd like to reset all of the installed libraries back to the ones that match production. Is there a quick and easy way to do this with pip? 回答1: I've found this snippet as an alternative solution. It's a more graceful removal of libraries than remaking the virtualenv: pip freeze | xargs pip uninstall -y In case you have packages installed via VCS, you need to exclude those lines and remove the packages manually (elevated from the comments below):