当前位置: 首页 > news >正文

做网站项目收获php 网站开发教程

做网站项目收获,php 网站开发教程,九江市广安建设工程有限公司网站,宜春做网站公司【macOS】【zsh Error】zsh: command not found: python 本地已经安装了Python,且能在Pycharm中编译Python程序并运行。 但是,在macOS终端,运行Python,报错。 首先要确认你在macOS系统下,是否安装了Python。 如果安…

 【macOS】【zsh Error】zsh: command not found: python

本地已经安装了Python,且能在Pycharm中编译Python程序并运行。

但是,在macOS终端,运行Python,报错。

首先要确认你在macOS系统下,是否安装了Python。

如果安装了,还要确认Python名称。

例如,我在终端输入python,报错:zsh: command not found: python。

而实际上,我的Python,安装在路径:/usr/local/bin

且文件名为:Python3.

所以,需要在终端输入:python3,才能正确运行。

----------------------------------------

下面是配置环境变量的步骤:

----------------------------------------

There are a few possible reasons why you might be getting this error:

1. Python is not in your PATH:

  • Check the installation location: 
    Make sure you installed Python to a directory that is in your system's PATH.
    Common locations include /usr/local/bin or /opt/anaconda3/bin.

  • Add the directory to your PATH: 
    If the directory is not in your PATH,
     you can add it by editing your .zshrc or .bash_profile file. 
    For example,
     if Python is installed in /usr/local/bin,
     you would add the following line to your .zshrc file:

    Bash

    export PATH="/usr/local/bin:$PATH"
    

    【Note】:
    Goodmao has successfully completed the Python installation and configured the PATH environment variable.

    vi ~/.bash_profile
    /usr/local/bin 
  • Restart your terminal: 
    After making changes to your .zshrc or .bash_profile file,
     you need to restart your terminal for the changes to take effect.

2. You're using the wrong shell:

  • Make sure you're using the correct shell. 
    If you're using a different shell, such as bash,
     you might need to use a different command to start Python. 
    For example, in bash, you would use python3 instead of python.

3. Python is not installed correctly:

  • If you're still having trouble, it's possible that Python is not installed correctly. 
    Try reinstalling Python or checking the installation logs for any errors.

Here's a summary of the steps you can take to resolve the issue:

  1. Check the installation location: 
    Make sure Python is installed in a directory that is in your PATH.
  2. Add the directory to your PATH: 
    If necessary, add the directory to your .zshrc or .bash_profile file.
  3. Restart your terminal: 
    Restart your terminal for the changes to take effect.
  4. Try using a different shell: 
    If you're using a different shell, try using the appropriate command to start Python.
  5. Reinstall Python: 
    If all else fails, try reinstalling Python.
http://www.yayakq.cn/news/73946/

相关文章:

  • 昆明网站建设方案优化大连网站流量优化定制
  • 快速做彩平图得网站商城网站建设公司报价
  • 昆山网站建设机构牌子网
  • 有什么网站开发客户网站建设的 文献综述
  • 深圳网站优化公司网站注册商是什么
  • 表白网页制作免费网站制作做发帖的网站代码
  • 营销型网站知识怎样申请微信小程序开店
  • 一个域名访问不同的网站网站建设. 龙兵科技
  • 广州网站制作开发公司哪家好中能建西北城市建设门户网站
  • 广州做营销型网站建设十大排行装修公司
  • 律师个人网站有用吗北京网站建设方面
  • dede企业网站模板凡科网站怎么修改昨天做的网站
  • 小程序网站做多大尺寸软文小故事200字
  • eclipse 网站开发过程重庆网站设计方案
  • 网站 如何做 同时在线物联网软件开发平台
  • 随州做网站公司外汇网站模版
  • 烟台网站建设诚信臻动传媒手机应用开发平台
  • 做网站维护的收入怎么确认可以做编程题的网站
  • 网站的设计原则如何获取网站备案号
  • 兼职工厂网站建设seo外链要做些什么
  • 数商云价格seo的内容主要有哪些方面
  • 桥梁建设杂志有假网站吗恒信在线做彩票的是什么样的网站
  • 设计一个网站首页方案在国外网站做中国旅游推广
  • wordpress制作购物网站做配资网站
  • 网站的建设模式今天的特大新闻有哪些
  • 沈阳做网站优化的公司百度权重4网站值多少钱
  • 环江住房和城乡建设部网站红灰搭配网站模板
  • dz论坛网站建设360优化大师旧版本
  • 网站建设色深圳市中心
  • 营销网站的专业性诊断评价和优化做内部优惠券网站赚钱吗