pip

pip for python3.7 (Ubuntu 16.04)

醉酒当歌 提交于 2021-01-21 04:25:07
问题 I am not able to install pip for python 3.7. When I tried to search online, one solution I found was to install pip using get-pip.py. However, it's failing for me: sudo python3.7 get-pip.py Traceback (most recent call last): File "get-pip.py", line 21373, in <module> main() File "get-pip.py", line 197, in main bootstrap(tmpdir=tmpdir) File "get-pip.py", line 82, in bootstrap import pip._internal File "/tmp/tmp3273u8va/pip.zip/pip/_internal/__init__.py", line 40, in <module> File "/tmp

conda equivalent of pip install --user

杀马特。学长 韩版系。学妹 提交于 2021-01-20 23:28:22
问题 To install to my own directory I can use pip install --user package Alternatively I can use conda install package How do I ask conda to install to my home directory since conda does not take a --user flag? Installing pip packages to $HOME folder 回答1: According to the documentation: --use-local 回答2: I don't think it's possible. Use virtual environments ( conda create ). 回答3: See -p option here: -p PATH, --prefix PATH Full path to environment prefix. So to install to, say, local under your home

conda equivalent of pip install --user

筅森魡賤 提交于 2021-01-20 23:28:02
问题 To install to my own directory I can use pip install --user package Alternatively I can use conda install package How do I ask conda to install to my home directory since conda does not take a --user flag? Installing pip packages to $HOME folder 回答1: According to the documentation: --use-local 回答2: I don't think it's possible. Use virtual environments ( conda create ). 回答3: See -p option here: -p PATH, --prefix PATH Full path to environment prefix. So to install to, say, local under your home

conda equivalent of pip install --user

﹥>﹥吖頭↗ 提交于 2021-01-20 23:27:33
问题 To install to my own directory I can use pip install --user package Alternatively I can use conda install package How do I ask conda to install to my home directory since conda does not take a --user flag? Installing pip packages to $HOME folder 回答1: According to the documentation: --use-local 回答2: I don't think it's possible. Use virtual environments ( conda create ). 回答3: See -p option here: -p PATH, --prefix PATH Full path to environment prefix. So to install to, say, local under your home

conda equivalent of pip install --user

跟風遠走 提交于 2021-01-20 23:27:01
问题 To install to my own directory I can use pip install --user package Alternatively I can use conda install package How do I ask conda to install to my home directory since conda does not take a --user flag? Installing pip packages to $HOME folder 回答1: According to the documentation: --use-local 回答2: I don't think it's possible. Use virtual environments ( conda create ). 回答3: See -p option here: -p PATH, --prefix PATH Full path to environment prefix. So to install to, say, local under your home

win环境 python3 flask 上手整理 环境搭建(一)

感情迁移 提交于 2021-01-20 21:14:18
为了学习,按照官方文档逐步进行 1、虚拟环境下载 这个按照文档进行一般不会出现问题,如果下载的时候 提示【超时】 ,请设置镜像源为国内的任何一个,可以永久,也可以临时,不知道怎么设置可以网上搜一下 国内的源如下: 清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 华中理工大学:http://pypi.hustunique.com/ 山东理工大学:http://pypi.sdutlinux.org/ 豆瓣:http://pypi.douban.com/simple/ note:新版ubuntu要求使用https源,要注意。 例如: 一个版本 pip3 install -i https://pypi.doubanio.com/simple/ 包名 多版本(如python39) python39 -m pip3 install -i https://pypi.doubanio.com/simple/ 包名 临时使用: (之所以写出来,是我也不想再搜索一次……) 可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn

How to uninstall package in Anaconda installed with pip

孤街醉人 提交于 2021-01-20 16:30:24
问题 The problem: I have installed Anaconda: conda -V conda 4.4.7 Also I installed a lot of packages for it using python3 setup.py install . I used it for some packages created from setup.py files. Now I want to uninstall one package. What I tried: pip uninstall packageName pip3 uninstall packageName conda uninstall packageName It works for python: check pip list and pip3 list and there isn't such package. Error: But for conda I got this: conda uninstall packageName Solving environment: failed

How to uninstall package in Anaconda installed with pip

若如初见. 提交于 2021-01-20 16:30:23
问题 The problem: I have installed Anaconda: conda -V conda 4.4.7 Also I installed a lot of packages for it using python3 setup.py install . I used it for some packages created from setup.py files. Now I want to uninstall one package. What I tried: pip uninstall packageName pip3 uninstall packageName conda uninstall packageName It works for python: check pip list and pip3 list and there isn't such package. Error: But for conda I got this: conda uninstall packageName Solving environment: failed

pkg_resources.DistributionNotFound: The 'pipenv==2018.10.13' distribution was not found and is required by the application

二次信任 提交于 2021-01-20 15:13:10
问题 I've reinstalled pip and pipenv due to some broken package with ansible. Now, it seems like my pip dependencies are all screwed. Any suggestion or help is greatly appreciated. $ which python2 /usr/local/bin/python2 $ which python3 /usr/local/bin/python3 $ which pipenv /usr/local/bin/pipenv Traceback (most recent call last): File "/usr/local/Cellar/pipenv/2018.10.13/libexec/bin/pipenv", line 6, in <module> from pkg_resources import load_entry_point File "/usr/local/Cellar/python/3.7.1

pkg_resources.DistributionNotFound: The 'pipenv==2018.10.13' distribution was not found and is required by the application

落花浮王杯 提交于 2021-01-20 15:12:35
问题 I've reinstalled pip and pipenv due to some broken package with ansible. Now, it seems like my pip dependencies are all screwed. Any suggestion or help is greatly appreciated. $ which python2 /usr/local/bin/python2 $ which python3 /usr/local/bin/python3 $ which pipenv /usr/local/bin/pipenv Traceback (most recent call last): File "/usr/local/Cellar/pipenv/2018.10.13/libexec/bin/pipenv", line 6, in <module> from pkg_resources import load_entry_point File "/usr/local/Cellar/python/3.7.1