- 浏览: 2551292 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
2018 Python Update(1)Python ENV
Have wget first
> curl -O http://ftp.gnu.org/gnu/wget/wget-1.19.tar.gz
Unzip the file and install that on Local
> ./configure --with-ssl=openssl --prefix=/Users/hluo/tool/wget-1.19
Error
configure: error: in `/Users/hluo/install/wget-1.19':
configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
Solution:
> ./configure --with-ssl=openssl --prefix=/Users/hluo/tool/wget-1.19 --with-libssl-prefix=/usr/local/ssl
Exception:
configure: error: --with-ssl=openssl was given, but SSL is not available
Solution:
Install openssl first
https://www.openssl.org/source/
>curl -O https://www.openssl.org/source/openssl-1.1.0g.tar.gz
> ./config --openssldir=/usr/local/ssl
Make and Make install on this machine
> openssl version
OpenSSL 1.1.0g 2 Nov 2017
> curl -O https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
Unzip and make and make install on my local
All of these above does not work.
Install Homebrew on MAC
https://docs.brew.sh/Installation
https://brew.sh/
Install with this command
> /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
> brew --version
Homebrew 1.5.10
Homebrew/homebrew-core (git revision c040; last commit 2018-03-13)
Install wget with brew
> brew install wget
Install Pip
Download the Pip file
> wget https://bootstrap.pypa.io/get-pip.py
Install Pip on local
> sudo python get-pip.py
Check the version
> pip --version
pip 9.0.1 from /Library/Python/2.7/site-packages (python 2.7)
Python ENV
http://sillycat.iteye.com/blog/2405030
Install AWS library
> sudo pip install boto3
Exception
OSError: [Errno 1] Operation not permitted: '/tmp/pip-rb223d-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'
Solution:
> sudo pip install --ignore-installed six
> sudo pip install --ignore-installed boto3
It seems I need install Python 3.6 on my Local
https://gist.github.com/alyssaq/f60393545173379e0f3f
https://wsvincent.com/install-python3-mac/
> brew install python3
> python -V
Python 2.7.10
> python3 -V
Python 3.6.4
Create a virtual env
> mkdir ~/.virtualenvs
Create python3
> python3 -m venv ~/.virtualenvs/python3env
Active
> source ~/.virtualenvs/python3env/bin/activate
Exit the ENV
> deactivate
Activate and install boto3
> source ~/.virtualenvs/python3env/bin/activate
> pip --version
pip 9.0.1 from /Users/hluo/.virtualenvs/python3env/lib/python3.6/site-packages (python 3.6)
> sudo pip install boto3
Then it works pretty well.
Set up the AWS key and secret in these files
~/.aws/credentials
~/.aws/config
Verify if my AWS config works
>>> client = boto3.client('s3')
>>> obj = client.get_object(Bucket=‘xxxxxx-dev', Key = '2016-05-19-17-38-21/manifest')
>>> print(obj['LastModified'])
2016-05-19 17:47:39+00:00
Go on check serverless framework and CloudFormation
References:
https://coolestguidesontheplanet.com/install-and-configure-wget-on-os-x/
https://superuser.com/questions/895295/ssl-not-available-when-attempting-to-compile-wget-from-source
https://ionelcondor.wordpress.com/2015/12/21/how-to-install-wget-on-mac-os-x-el-capitan/
https://www.cyberciti.biz/faq/howto-install-wget-om-mac-os-x-mountain-lion-mavericks-snow-leopard/
http://sillycat.iteye.com/blog/2405030
Have wget first
> curl -O http://ftp.gnu.org/gnu/wget/wget-1.19.tar.gz
Unzip the file and install that on Local
> ./configure --with-ssl=openssl --prefix=/Users/hluo/tool/wget-1.19
Error
configure: error: in `/Users/hluo/install/wget-1.19':
configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
Solution:
> ./configure --with-ssl=openssl --prefix=/Users/hluo/tool/wget-1.19 --with-libssl-prefix=/usr/local/ssl
Exception:
configure: error: --with-ssl=openssl was given, but SSL is not available
Solution:
Install openssl first
https://www.openssl.org/source/
>curl -O https://www.openssl.org/source/openssl-1.1.0g.tar.gz
> ./config --openssldir=/usr/local/ssl
Make and Make install on this machine
> openssl version
OpenSSL 1.1.0g 2 Nov 2017
> curl -O https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
Unzip and make and make install on my local
All of these above does not work.
Install Homebrew on MAC
https://docs.brew.sh/Installation
https://brew.sh/
Install with this command
> /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
> brew --version
Homebrew 1.5.10
Homebrew/homebrew-core (git revision c040; last commit 2018-03-13)
Install wget with brew
> brew install wget
Install Pip
Download the Pip file
> wget https://bootstrap.pypa.io/get-pip.py
Install Pip on local
> sudo python get-pip.py
Check the version
> pip --version
pip 9.0.1 from /Library/Python/2.7/site-packages (python 2.7)
Python ENV
http://sillycat.iteye.com/blog/2405030
Install AWS library
> sudo pip install boto3
Exception
OSError: [Errno 1] Operation not permitted: '/tmp/pip-rb223d-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'
Solution:
> sudo pip install --ignore-installed six
> sudo pip install --ignore-installed boto3
It seems I need install Python 3.6 on my Local
https://gist.github.com/alyssaq/f60393545173379e0f3f
https://wsvincent.com/install-python3-mac/
> brew install python3
> python -V
Python 2.7.10
> python3 -V
Python 3.6.4
Create a virtual env
> mkdir ~/.virtualenvs
Create python3
> python3 -m venv ~/.virtualenvs/python3env
Active
> source ~/.virtualenvs/python3env/bin/activate
Exit the ENV
> deactivate
Activate and install boto3
> source ~/.virtualenvs/python3env/bin/activate
> pip --version
pip 9.0.1 from /Users/hluo/.virtualenvs/python3env/lib/python3.6/site-packages (python 3.6)
> sudo pip install boto3
Then it works pretty well.
Set up the AWS key and secret in these files
~/.aws/credentials
~/.aws/config
Verify if my AWS config works
>>> client = boto3.client('s3')
>>> obj = client.get_object(Bucket=‘xxxxxx-dev', Key = '2016-05-19-17-38-21/manifest')
>>> print(obj['LastModified'])
2016-05-19 17:47:39+00:00
Go on check serverless framework and CloudFormation
References:
https://coolestguidesontheplanet.com/install-and-configure-wget-on-os-x/
https://superuser.com/questions/895295/ssl-not-available-when-attempting-to-compile-wget-from-source
https://ionelcondor.wordpress.com/2015/12/21/how-to-install-wget-on-mac-os-x-el-capitan/
https://www.cyberciti.biz/faq/howto-install-wget-om-mac-os-x-mountain-lion-mavericks-snow-leopard/
http://sillycat.iteye.com/blog/2405030
发表评论
-
Stop Update Here
2020-04-28 09:00 315I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 475NodeJS12 and Zlib It works as ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 367Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 368Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 336Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 430Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 435Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 373Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 454VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 384Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 477NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 422Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 337Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 246GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 450GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 326GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 313Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 317Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF
2020-02-19 01:18 292Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(1)Running with Component
2020-02-19 01:17 311Serverless with NodeJS and Tenc ...
相关推荐
最后,将安装的 Python 2.7 目录复制到 Env 工具的目录下,覆盖原来的文件。 四、结论 RT-Thread 的 Env 工具是一个功能强大的工具,可以帮助用户快速地管理软件包。但是,在使用 Env 工具时,可能会遇到无法下载...
例如,安装Python 3的命令是 `sudo apt update && sudo apt install python3`。这将自动从Ubuntu的软件仓库中安装最新版本的Python 3,并确保所有依赖项也得到解决。同样,对于Python 2,可以使用命令 `sudo apt ...
ENV PYTHON_VERSION 3.5.3 ENV name1=ping name2=on_ip CMD $name1 $name2 说明:定义环境变量的同时,可以引用已经定义的环境变量。 在ENV指令中,可以直接引用如下环境变量: HOME,用户主目录
1. Anaconda核心功能: - **环境管理**:Anaconda通过conda命令行工具帮助用户创建、管理多个独立的Python环境,每个环境可以有特定的Python版本和依赖包,避免了不同项目之间的库冲突。 - **包管理**:它包含了...
1. **Python 3**: Python 3是Python编程语言的最新主要版本,相比Python 2,它引入了大量改进和优化,包括语法更新、性能提升以及更好的错误处理。Python 3已经成为许多新项目的首选,因为Python 2已在2020年1月1日...
/usr/bin/env python来使脚本文件具有执行权限,之后通过命令./mysript.py运行脚本。 在实际应用中,Python SPI可以用于各种硬件通信场景,如传感器数据读取、显示屏控制、电子设备编程等。由于其易用性,Python ...
6. 生成环境:Poet还可以帮助创建一个虚拟环境,使用`poet env create`,这将根据`requirements.txt`文件创建一个与项目兼容的Python环境。 7. 分发项目:当你的项目准备就绪,你可以使用`poet publish`命令来发布...
使用conda create --name your_env_name python=X.X命令,可以创建一个指定Python版本(如2.7、3.6)的虚拟环境。这里的your_env_name是用户自定义的环境名称,创建完成后,可以在Anaconda安装目录下的envs文件夹中...
这将在当前目录下创建一个名为`my_tensorflow_env`的文件夹,其中包含了一个独立的Python环境。 4. **激活虚拟环境**:激活新创建的虚拟环境: ``` source my_tensorflow_env/bin/activate ``` 在Linux终端中...
Python库pysbrl-0.4.2rc0-cp36-cp36m-manylinux1_i686.whl是一个适用于Python 3.6版本的软件包,它遵循许多Linux1(manylinux1)兼容性标准,确保在多种Linux发行版上运行良好。该whl文件是一种二进制格式的Python包...
1. **减少包安装工作**:Anaconda预装了Python和超过150个科学计算库,如NumPy、Pandas、Matplotlib等,这减少了开发者手动安装这些常见库的步骤。 2. **环境管理**:conda允许创建和管理多个独立的Python环境,每...
1. **创建环境**:`conda create -n env_name python=x.y` 创建一个名为env_name的新环境,并指定Python版本为x.y。 2. **激活环境**:`conda activate env_name` 将当前终端切换到env_name环境。 3. **安装包**:`...
conda env update -f environment.yml 二、使用修改 1. 将数据库修改为自己本地或者云端的数据库 2. 准备的用数据库连接测试代码,请在运行前进行测试 三、进行执行即可 python appPro.py 四、提供多个扩展模块 ...
如果在VIRTUAL_ENV中,请选择正确的python可执行文件。 为项目或测试文件运行pytest / nosetests,并在{vimspector}中使用断点。 将当前文件调试为程序。 启动ipython并附加一个调试器,以使用调试代码。 安装 用...
- 管理环境:使用`conda env list`查看所有环境,`conda remove --name env_name --all`删除无用环境。 在服务器运维中,Miniconda可以帮助你创建隔离的Python开发环境,使得不同项目可以共存且互不影响。对于团队...
usr/bin/env python3 #_*_coding:utf-8_*_ 'staff information management module' __author__ = 'ByronLi' #...(此处省略了详细的代码实现部分) ``` #### 五、总结 通过上述介绍,我们可以看到,使用Python...
使用conda管理环境非常方便,通过命令如`conda create -n env_name list of packages`创建新环境,`source activate env_name`进入环境,`source deactivate`退出环境,`conda env remove -n env-name`删除环境。...
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.x 1 sudo update-alternatives --config python ``` 这将更新`python`命令的默认解释器为Python 3.x,但请注意,这会影响全局设置...
- `conda env update -f /path/to/environment.yml` 通过这种方式,我们可以轻松地在不同的计算机之间共享完整的开发环境。 - **列出环境** - `conda env list` - **删除环境** - `conda env remove -n env_...
创建新环境的命令是`conda create -n env_name python=version`,激活环境则用`conda activate env_name`。 - **包管理**:使用`conda install package_name`来安装包,`conda remove package_name`来卸载,`conda ...