[英]i install conda installed and Python installed seperately
i have Conda installed and Python installed separately, when i run.py file it is referencing to python's packages not from Conda so some pkg are missing(pandas), Conda has pandas but not Python. all default installations are go to Conda pkg files.我安装了 Conda 并单独安装了 Python,当我运行 .py 文件时,它引用的不是来自 Conda 的 python 包,因此缺少一些 pkg(熊猫),Conda 有 pandas 但没有 Python。所有默认安装都是 go 到 Conda pkg 文件。 how do i install pandas to Python that is not in Conda?
我如何将 pandas 安装到不在 Conda 中的 Python?
To run a file from conda, simply go to your anaconda prompt and cd into the drive.要从 conda 运行文件,只需输入 go 到 anaconda 提示符,然后 cd 进入驱动器。 Similarly, you can search for your python prompt from the start bar and run code from there.
同样,您可以从开始栏搜索 python 提示符并从那里运行代码。
To install pandas into your python installation type:要将 pandas 安装到您的 python 安装类型中:
pip install pandas
If you are running code from an IDE or code editor, you need to go into your settings and change the default runtime environment to anaconda. Even easier, open your anaconda navigator and then run your editor from there.如果您从 IDE 或代码编辑器运行代码,则需要将 go 设置为您的设置并将默认运行时环境更改为 anaconda。更简单的是,打开您的 anaconda 导航器,然后从那里运行您的编辑器。
Your conda installation can't not have python, although it might be running the wrong version of python for your code.您的 conda 安装不能没有 python,尽管它可能为您的代码运行了错误版本的 python。 To change the version of python type:
要更改 python 类型的版本:
conda install python=$pythonversion$
into your conda prompt.进入您的 conda 提示符。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.