我的笔记本电脑上有Python 3.5和Python 3.6。我正在使用Ubuntu 16.04。我使用body {
font-family: 'Open Sans', sans-serif;
font-weight: 400;
color: #666;
font-size: 12px;
line-height: 20px;
width: 100%;
padding-top: 50px;
padding-bottom: 58px;
background: #fff;
}
header {
position: fixed;
top: 0;
width: 100%;
display: block !important;
background: #FFF;
padding: 0;
padding-top: 5px;
direction: ltr;
height: 45px;
box-shadow: 1px 0 5px 0 #444;
z-index: 1040;
transition: top 0.2s ease-in-out;
}
@supports(margin: max(0px)) {
body {
margin-top: max(30px, env(safe-area-inset-top));
margin-bottom: max(15px, env(safe-area-inset-bottom));
}
}
@supports(top: max(0px)) {
header {
top: max(30px, env(safe-area-inset-top));
}
}
来安装pip3
。它适用于Python3.5,但不适用于Python3.6。请帮忙。
答案 0 :(得分:1)
要通过pip安装特定的python版本使用:
py -(python-version) -m pip install numpy
在你的情况下
py -3.6 -m pip install numpy
答案 1 :(得分:0)
确保您的Python是Python 3.6:
python --version
Python 3.6.4
现在安装:
python -m pip install numpy
这将为当前Python运行pip
选项-m
导入模块pip
并将其作为pip
作为命令行应用程序运行。
答案 2 :(得分:0)
由于我没有代表,所以无法发表评论。
如果你检查python --version
时你的默认python是3.5,那么要找到所需版本的python可执行文件的位置(这里是3.6)。
cd到该文件夹,然后运行Mike提供的命令。