Python 3.5 环境及组件配置

  1. install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Jump if already installed. It’s necessary to update your homebrew to the latest version.
2. Use Homebrew install Python3 & pip3 (pip is a package management tool for Python), automatically latest version, you may choose another version.

$ brew install python3  

We use pip3 because we want to use Python 3.x.x.
3. If you need pip simply, try

$ sudo easy_install pip

install pip need administrator role
4. Check the version

$python --version
$python3 --version
$pip --version
$pip3 --version
  1. Install PyCharm. I recommend community edition. If you want the professional edition, there is a Free JetBrains Products License Server.
  2. Install additional packages:
    For example, bs4 (BeautifulSoup 4):

    • PyCharm offer you an inner package management tool:
      Preferences –> Project –> Project Interpreter
      • Click “+” to install packages you need.
      • Usually there are some errors, follow its introduction and try again.
      • At most cases, error occurs when you revoke the administrator role.
        So… sudo please
    • Another way is to install in the terminal:
      $ pip3 install bs4

      • if any problems, follow the introduction and try again.
      • Usually you need to upgrade your “pip” “homebrew” “python” or other relative package.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在Windows 10上进行离线安装Python 3.5,您可以按照以下步骤进行操作: 1. 首先,您需要准备一个包含Python 3.5安装程序的离线安装文件。您可以从Python官方网站(python.org)的下载页面找到适用于Windows的Python 3.5安装程序(.exe文件)。确保选择与您操作系统相匹配的版本。 2. 将下载的Python 3.5安装程序复制到您希望安装Python的计算机上。可以将其保存在一个文件夹中,以便稍后操作。 3. 打开文件夹,找到Python 3.5安装程序(.exe文件),双击运行它。如果系统询问是否要更改此设备上的应用程序,请选择“是”。 4. 安装程序将启动,并显示Python 3.5的安装向导。按照向导的指示进行操作。在安装类型页面上,您可以选择“自定义安装”以选择您希望安装的组件和选项。 5. 在自定义安装页面上,您可以选择默认安装位置,也可以更改安装位置。确保选择一个您希望Python 3.5安装到的文件夹。 6. 在选择其他安装选项页面上,您可以选择是否加入Path环境变量。如果选择加入,系统将自动配置Path环境变量以使您能够从任何位置运行Python命令。 7. 完成所有安装选项后,点击“安装”按钮开始安装过程。安装程序将复制所有必需的文件,并将Python 3.5的安装路径添加到您选择的位置。 8. 安装完成后,您可以关闭安装程序,然后打开命令提示符或PowerShell窗口,输入“python”命令来验证Python 3.5是否已成功安装。如果显示Python解释器的版本信息,表示安装成功。 通过按照上述步骤进行操作,您应该能够在Windows 10上离线安装Python 3.5。请注意,这是一个基本的步骤指南,具体步骤可能会根据您的操作系统版本和安装程序的更新而有所不同。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值