Pip Install not installing into correct directory?

前端 未结 10 1093
小蘑菇
小蘑菇 2020-11-29 04:22

I can\'t seem to use sudo pip install correctly so that it installs into the following directory:

/Library/Frameworks/Python.framework/Versions/2.7/lib/pyth         


        
10条回答
  •  旧巷少年郎
    2020-11-29 04:40

    I've tried this and it worked for me,

    curl -O  https://files.pythonhosted.org/packages/c0/4d/d2cd1171f93245131686b67d905f38cab53bf0edc3fd1a06b9c667c9d046/boto3-1.14.29.tar.gz
    
    tar -zxvf boto3-1.14.29.tar.gz
    
    cd boto3-1.14.29/
    

    Replace X with your required python interpreter, for mine it was python3

    sudo pythonX setup.py install
    

提交回复
热议问题