pyenv

22款终端生产力工具,效率飞起!

我怕爱的太早我们不能终老 提交于 2021-02-14 12:51:41
译文:switowski.com/blog/favorite-cli-tools 程序员在搞开发时, 终端CLI工具 的使用必不可少,往往都是 生产力工具 ,所以今天在此给大家推荐一下比较好用的终端工具。先给大家列个 推荐清单 ,如下图。 高频 CLI 工具推荐 1、fish shell 毋庸置疑,在终端工具中,Shell 是使用最频繁也最重要的工具。过去,我曾经使用过 Bash 和 Z Shell,而如今,这个Fish Shell,也是一个非常优秀的终端 Shell 工具,拥有许多开箱即用的功能,例如语法自动推荐补全、语法高亮显示或使用快捷键在最近访问的文件夹之间来回切换。 下载地址:https://fishshell.com/ 2、Starship 如果必须要从本篇文章中选择一个我最喜欢的终端工具——那非 Starship 莫属。Starship 可以适用于任何 Shell。你只需要安装它,然后在相应的配置文件.bashrc/.zshrc/config.fish添加一行配置,剩下的工作交给它来完成就好了。 它可以做到: 根据你是否在代码仓库中添加了新文件、是否修改了文件、是否暂存了文件等情况,用相应的符号表示 git 仓库的状态。 根据你所在的 Python 项目目录,展示 Python 的版本号,这也适用于 Go/Node/Rust/Elm 等其他编程语言环境。

22 款终端生产力工具,效率飞起!

你说的曾经没有我的故事 提交于 2021-02-14 12:04:03
点击上方 IT牧场 ,选择 置顶或者星标 技术干货每日送达 译文:switowski.com/blog/favorite-cli-tools 程序员在搞开发时, 终端CLI工具 的使用必不可少,往往都是 生产力工具 ,所以今天在此给大家推荐一下比较好用的终端工具。先给大家列个 推荐清单 ,如下图。 高频 CLI 工具推荐 1、fish shell 毋庸置疑,在终端工具中,Shell 是使用最频繁也最重要的工具。过去,我曾经使用过 Bash 和 Z Shell,而如今,这个Fish Shell,也是一个非常优秀的终端 Shell 工具,拥有许多开箱即用的功能,例如语法自动推荐补全、语法高亮显示或使用快捷键在最近访问的文件夹之间来回切换。 下载地址:https://fishshell.com/ 2、Starship 如果必须要从本篇文章中选择一个我最喜欢的终端工具——那非 Starship 莫属。Starship 可以适用于任何 Shell。你只需要安装它,然后在相应的配置文件.bashrc/.zshrc/config.fish添加一行配置,剩下的工作交给它来完成就好了。 它可以做到: 根据你是否在代码仓库中添加了新文件、是否修改了文件、是否暂存了文件等情况,用相应的符号表示 git 仓库的状态。 根据你所在的 Python 项目目录,展示 Python 的版本号,这也适用于 Go

【Mac + Python3.6 + ATX基于facebook-wda】之IOS自动化(二):安装facebook-wda库并编写简易自动化测试脚本

旧城冷巷雨未停 提交于 2021-02-14 09:26:17
上一篇介绍完如何安装WDA,接下来开始正式安装开发库并编写自动化脚本。 目录: 一、 安装facebook-wda库 二、 通过WEditor定位元素 三、 附录:学习资料 一、 安装facebook-wda库 运行命令行安装: pip install --pre facebook-wda 或者使用pycharm中,Preferences->Project->Project Interpreter->【+】(加号), 搜索:facebook-wda,并安装 举个栗子,页面元素定位,如下图,class、name一一展示: 通过“ ideviceinstaller -l ”或者其他工具查找到APP软件的bundleId $ ideviceinstaller - l Total: 5 apps com.ysr.scancode - 二维码扫描器 3 com.apple.test.WebDriverAgentRunner -Runner - WebDriverAgentRunner-Runner 1 com.sogou.sogouinput - 搜狗输入法 142709 com.netease.cloudmusic - 网易云音乐 1044 com.leqimea.recorderAudio - PP助手 10000 但是,会一直报错 Could not connect to

#1 组成互不相同且不重复的三位数

守給你的承諾、 提交于 2021-02-11 19:18:35
【题目】 从1,2,3,4四个数字中组成互不相同且不重复的三位数,要求全部列出 【题目分析】 用列表生成式一步到位 【解答】 1 # !/Users/minutesheep/.pyenv/shims/python 2 # -*- coding: utf-8 -*- 3 4 ans = [i*100+j*10+k for i in range(1, 5) for j in range(1, 5 ) 5 ¦ for k in range(1, 5) if i != j and i != k and j != k] 6 print (ans) 程序源代码 [123, 124, 132, 134, 142, 143, 213, 214, 231, 234, 241, 243, 312, 314, 321, 324, 341, 342, 412, 413, 421, 423, 431, 432] 运行结果 原文出处:https://www.cnblogs.com/minutesheep/p/10386942.html 来源: oschina 链接: https://my.oschina.net/u/4345058/blog/3269539

Pyenv: How to 'rebuild' virtualenvs after rebuilding python

孤人 提交于 2021-02-10 13:29:10
问题 I rebuilt python 3.7 to get pyinstaller to work on Mac, and it seems to have deleted all my virtualenvs using 3.7.0. The .python-version files still exist, and they point at the location I would expect. But when I run 'pyenv virtualenvs' there's no python3 environments at all, and in the project directory, the python command doesn't work at all. 3.7.0/envs/some-scripts``` ```$ ls ~/.pyenv/versions/3.7.0/envs/some-scripts/bin/ activate chardetect macho_find netaddr pydoc pyi-makespec python3

How can I fix a py2app error when building with py2app

南笙酒味 提交于 2021-01-29 09:44:45
问题 Trying to build a simple wxpython app using py2app and using pyenv. I created a virtual environment from whence I run the application and build with py2app. It fails during building on a "no such file or directory" error. copying file /Users/humberto.a.sanchez.ii/.pyenv/versions/3.8.5/Resources/Python.app/Contents/MacOS/Python -> /Users/humberto.a.sanchez.ii/PycharmProjects/gittodoistclone/dist/PyGitIssueClone.app/Contents/MacOS/python error: [Errno 2] /Users/humberto.a.sanchez.ii/.pyenv

pyenv virtualenv activation not work when use full path

我们两清 提交于 2021-01-28 12:20:36
问题 I install pyenv on centos, and check if its working. # curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 104 2099 104 2099 0 0 14121 0 --:--:-- --:--:-- --:--:-- 18575 Initialized empty Git repository in /root/.pyenv/.git/ remote: Counting objects: 4531, done. remote: Compressing objects: 100% (1831/1831), done. remote: Total 4531 (delta 3252),

Pyenv not picking up other python installations

∥☆過路亽.° 提交于 2021-01-27 11:27:09
问题 I am using pyenv to manage python installations and virtual environments. I have several python installations on my Mac (Catalina). The system python (python 2.7 in usr/bin) python 3.9 in usr/bin (coming from default installer from python.org/downloads) python 3.9 in /opt/anaconda3/bin/python3 (coming from https://www.anaconda.com/products/individual) For a project, I would need python 3.6. I know that conda offers the possibility to create virtual environments with a specific python version,

Pyenv not picking up other python installations

我怕爱的太早我们不能终老 提交于 2021-01-27 11:26:09
问题 I am using pyenv to manage python installations and virtual environments. I have several python installations on my Mac (Catalina). The system python (python 2.7 in usr/bin) python 3.9 in usr/bin (coming from default installer from python.org/downloads) python 3.9 in /opt/anaconda3/bin/python3 (coming from https://www.anaconda.com/products/individual) For a project, I would need python 3.6. I know that conda offers the possibility to create virtual environments with a specific python version,

Pyenv not picking up other python installations

岁酱吖の 提交于 2021-01-27 11:25:35
问题 I am using pyenv to manage python installations and virtual environments. I have several python installations on my Mac (Catalina). The system python (python 2.7 in usr/bin) python 3.9 in usr/bin (coming from default installer from python.org/downloads) python 3.9 in /opt/anaconda3/bin/python3 (coming from https://www.anaconda.com/products/individual) For a project, I would need python 3.6. I know that conda offers the possibility to create virtual environments with a specific python version,