简体   繁体   English

我安装了conda并单独安装了Python

[英]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.

相关问题 Python未找到随conda install一起安装的名为package的模块 - Python found No module named package that is installed with conda install 如何在 Windows 10 和 python 3.7 中使用 conda 安装 gdal? 安装geoviews后,我再也没有设法使用gdal - How to install gdal using conda in Windows 10 with python 3.7? After I installed geoviews I´ve never managed to use gdal again 如何检查我是否安装了 Python、pandas 和带有 conda 或 pip 的 Jupyter? 我应该用 conda 重新安装它吗? - How can I check if I installed Python, pandas, and Jupyter with conda or pip? Should I reinstall it with conda? 使用“Conda install”安装了 Python 3.6,无法运行旧的 2.7 python 程序 - Installed Python 3.6 using 'Conda install', unable to run old 2.7 python programs 当它们安装在python2.7中时,如何为python3.x安装Numpy和pip3? 使用Conda吗? - How to install Numpy & pip3 for python3.x when they were installed in python2.7? Using Conda? Python包用与pip和conda一起安装的重复项 - Python packages duplicates installed with pip and conda 在另一个conda环境中安装了哪个Python版本 - Which Python version is installed in another conda env Conda 安装的软件包,Python 找不到它 - Package installed by Conda, Python cannot find it Python找不到与Conda一起安装的软件包 - Python doesn't find packages that are installed with Conda 如果我使用 pip 安装 Anaconda 中未包含的软件包,package 是否也会安装在 conda 环境中? - Does a package also gets installed in conda environment if I use pip to install packages not included in Anaconda?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM