install pip3 for conda

北战南征 提交于 2019-12-03 11:09:26

问题


Python2.6 was installed by default in my old centos server. Now I want to create a Python3 environment to install python3 specific module by conda

conda create -n py3 python=3.5.3
source activate py3

After activate the py3, I try to install hovercraft by pip3 install hovercraft, the shell tells "command not found: pip3". At first I thought pip3 was installed with Python3, but the result was not the case.
So I think I can install it manually. The package gzip file was downloaded from python package index, and install by conda install --file hovercraft-2.3.tar.gz. But it doesn't work.
Now I have two problems:

  1. how to install pip3 for virtual-env create by conda?
  2. Is it possible to install python package index downloaded package locally in conda?

回答1:


pip3 and pip would make a difference only when you are not using any environment managers like virualenv (or) conda. Now as you are creating a conda environment which has python==3.x, pip would be equivalent to pip3.



来源:https://stackoverflow.com/questions/44362214/install-pip3-for-conda

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!