从头开始,环境安装,node.js , git, python, pip, awscli

3 篇文章 0 订阅
1 篇文章 0 订阅

 

1.安装node.js

https://nodejs.org/en/

使用的版本

我们可以使用以下命令来查看当前的 Node 版本:

$ node -v

node.js 安装成功

2. 安装Vue.js

npm install vue

https://cn.vuejs.org/v2/guide/installation.html

 

开发版本

重要: GitHub 仓库的 /dist 文件夹只有在新版本发布时才会提交。如果想要使用 GitHub 上 Vue 最新的源码,你需要自己构建!

git clone https://github.com/vuejs/vue.git node_modules/vue
cd node_modules/vue
npm install
npm run build

3. 安装git

https://git-scm.com/download/win

 

4. 安装Python

  从Git源代码安装,安装python最新版本https://github.com/python/cpython

 用git 下载到本地,git clone https://github.com/python/cpython.git

拉取最新3.8版本,git checkout remotes/origin/3.8

按照文档说明进行安装

On Unix, Linux, BSD, macOS, and Cygwin:

./configure
make
make test
sudo make install

Python build finished successfully!

期间会报错:

Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host().
LibreSSL 2.6.4 and earlier do not provide the necessary APIs, https://github.com/libressl-portable/portable/issues/381

本地查看ssl version的版本是高于1.0.2的。

可以执行命令:apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

来解决SSL的问题

如果还报:ModuleNotFoundError: No module named '_ctypes'

可以执行命令:apt install libffi-dev

 

make install命令执行的时候还会报lib的错误,

先要执行以下语句 apt -y install libssl-dev

解决完问题后重新执行make install

最后提示安装成功:

命令:python3

命令:pip3 -v

下面为了方便再修改它们的软链接。

命令:whereis python3,找到python3的位置 或者

which python3

看到python3->python3.8,将它修改为python->python3.8

命令:mv /usr/local/bin/python3 /usr/local/bin/python 将python3 重命令为python

输入命令:python后显示python3.8

设置pip3的软链接:ln -s /usr/local/bin/pip3 /usr/bin/pip

5. 安装AWS-CLI

命令:pip install awscli

如果以上Python安装正常不会报下面的错误,如果安装Python的时候跳过了如下错误的话请执行下:

命令:apt install libffi-dev

ModuleNotFoundError: No module named '_ctypes',

 

  

检查awscli安装成功。

参考的URL:

https://stackoverflow.com/questions/41328451/ssl-module-in-python-is-not-available-when-installing-package-with-pip3

解决了Could not build the ssl module! Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl

https://github.com/pyenv/pyenv/issues/1183 解决了:ModuleNotFoundError: No module named '_ctypes'

https://github.com/python/cpython 提供python最新源代码

https://aws.amazon.com/cli/  aws cli

 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值