精华内容
下载资源
问答
  • 2022-02-22 15:36:48

    1. 进入Anaconda环境

    2. 输入指令:

    conda update numpy

    更多相关内容
  • 报错如下: Preparing transaction: done Verifying transaction: failed EnvironmentNotWritableError: The current user does not have write permissions to the target environment. environment location: C:...

    报错如下:

    Preparing transaction: done
    Verifying transaction: failed
    
    EnvironmentNotWritableError: The current user does not have write permissions to the target environment.
      environment location: C:\ProgramData\Anaconda3
    

    主要原因:用户没有对anaconda3文件夹的读写权限,造成其原因可能是由于在安装anaconda时使用了管理员权限
    在这里插入图片描述

    解决办法:(尝试了很多办法都没有用,最后终于找到解决办法)

    1、选择anaconda3文件夹右键属性
    2、点击安全:在这里插入图片描述
    3.可以发现当前的权限没有达到完全控制
    4、点击编辑,改为完全控制即可
    在这里插入图片描述
    将权限改为完全控制即可!

    在这里插入图片描述

    展开全文
  • 如果不知道怎么安装conda详细可以查看Ubuntu16.04 安装 Anaconda ,与此同时进一步查看pandas安装以及使用ubuntu16.04 熟悉 pandas 后续的学习目的也是为了更好的解决日常办公需求,所以pandas,numpy也将是我自己的...

    前言

    NumPy(Numerical Python) 是 Python 语言的一个扩展程序库,支持大量的维度数组与矩阵运算,此外也针对数组运算提供大量的数学函数库。

    如果不知道怎么安装conda详细可以查看Ubuntu16.04 安装 Anaconda ,与此同时进一步查看pandas安装以及使用ubuntu16.04 熟悉 pandas

    后续的学习目的也是为了更好的解决日常办公需求,所以pandas,numpy也将是我自己的学习重点;

    安装NumPy和Pandas

    创建自己的环境,不推荐使用base环境中

    (base) cooper@cooper:~$ conda create -n cooper
    Collecting package metadata (current_repodata.json): done
    Solving environment: done
    
    ## Package Plan ##
    
      environment location: /home/cooper/anaconda3/envs/cooper
    
    
    
    Proceed ([y]/n)? y
    
    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done
    #
    # To activate this environment, use
    #
    #     $ conda activate cooper
    #
    # To deactivate an active environment, use
    #
    #     $ conda deactivate
    

    激活cooper

    (base) cooper@cooper:~$ conda activate cooper
    

    安装NumPy

    (cooper) cooper@cooper:~$ conda config --env --add channels conda-forge
    (cooper) cooper@cooper:~$ conda install numpy
    Collecting package metadata (current_repodata.json): done
    Solving environment: done
    
    ## Package Plan ##
    
      environment location: /home/cooper/anaconda3/envs/cooper
    
      added / updated specs:
        - numpy
    
    
    The following packages will be downloaded:
    
        package                    |            build
        ---------------------------|-----------------
        ca-certificates-2021.10.8  |       ha878542_0         139 KB  conda-forge
        certifi-2021.10.8          |   py39hf3d152e_0         144 KB  conda-forge
        python_abi-3.9             |           2_cp39           4 KB  conda-forge
        ------------------------------------------------------------
                                               Total:         287 KB
    
    The following NEW packages will be INSTALLED:
    
      python_abi         conda-forge/linux-64::python_abi-3.9-2_cp39
    
    The following packages will be UPDATED:
    
      ca-certificates    pkgs/main::ca-certificates-2021.9.30-~ --> conda-forge::ca-certificates-2021.10.8-ha878542_0
    
    The following packages will be SUPERSEDED by a higher-priority channel:
    
      certifi            pkgs/main::certifi-2021.10.8-py39h06a~ --> conda-forge::certifi-2021.10.8-py39hf3d152e_0
    
    
    Proceed ([y]/n)? y
    
    
    Downloading and Extracting Packages
    certifi-2021.10.8    | 144 KB    | ################################################################################################################################################################### | 100% 
    python_abi-3.9       | 4 KB      | ################################################################################################################################################################### | 100% 
    ca-certificates-2021 | 139 KB    | ################################################################################################################################################################### | 100% 
    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done
    

    安装Pandas

    (cooper) cooper@cooper:~$ conda install pandas
    Collecting package metadata (current_repodata.json): done
    Solving environment: done
    
    ## Package Plan ##
    
      environment location: /home/cooper/anaconda3/envs/cooper
    
      added / updated specs:
        - pandas
    
    
    The following packages will be downloaded:
    
        package                    |            build
        ---------------------------|-----------------
        pandas-1.2.5               |   py39hde0f152_0        12.1 MB  conda-forge
        python-dateutil-2.8.2      |     pyhd8ed1ab_0         240 KB  conda-forge
        pytz-2021.3                |     pyhd8ed1ab_0         242 KB  conda-forge
        ------------------------------------------------------------
                                               Total:        12.5 MB
    
    The following NEW packages will be INSTALLED:
    
      pandas             conda-forge/linux-64::pandas-1.2.5-py39hde0f152_0
      python-dateutil    conda-forge/noarch::python-dateutil-2.8.2-pyhd8ed1ab_0
      pytz               conda-forge/noarch::pytz-2021.3-pyhd8ed1ab_0
    
    
    Proceed ([y]/n)? y
    
    
    Downloading and Extracting Packages
    pandas-1.2.5         | 12.1 MB   | ################################################################################################################################################################### | 100% 
    python-dateutil-2.8. | 240 KB    | ################################################################################################################################################################### | 100% 
    pytz-2021.3          | 242 KB    | ################################################################################################################################################################### | 100% 
    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done
    

    安装pandas依赖pytest

    (cooper) cooper@cooper:~$ conda install pytest
    Collecting package metadata (current_repodata.json): done
    Solving environment: done
    
    ## Package Plan ##
    
      environment location: /home/cooper/anaconda3/envs/cooper
    
      added / updated specs:
        - pytest
    
    
    The following packages will be downloaded:
    
        package                    |            build
        ---------------------------|-----------------
        attrs-21.2.0               |     pyhd8ed1ab_0          44 KB  conda-forge
        iniconfig-1.1.1            |     pyh9f0ad1d_0           8 KB  conda-forge
        more-itertools-8.10.0      |     pyhd8ed1ab_0          44 KB  conda-forge
        packaging-21.0             |     pyhd8ed1ab_0          35 KB  conda-forge
        pluggy-1.0.0               |   py39hf3d152e_1          25 KB  conda-forge
        py-1.10.0                  |     pyhd3deb0d_0          73 KB  conda-forge
        pyparsing-2.4.7            |     pyh9f0ad1d_0          60 KB  conda-forge
        pytest-6.2.5               |   py39hf3d152e_0         433 KB  conda-forge
        toml-0.10.2                |     pyhd8ed1ab_0          18 KB  conda-forge
        ------------------------------------------------------------
                                               Total:         740 KB
    
    The following NEW packages will be INSTALLED:
    
      attrs              conda-forge/noarch::attrs-21.2.0-pyhd8ed1ab_0
      iniconfig          conda-forge/noarch::iniconfig-1.1.1-pyh9f0ad1d_0
      more-itertools     conda-forge/noarch::more-itertools-8.10.0-pyhd8ed1ab_0
      packaging          conda-forge/noarch::packaging-21.0-pyhd8ed1ab_0
      pluggy             conda-forge/linux-64::pluggy-1.0.0-py39hf3d152e_1
      py                 conda-forge/noarch::py-1.10.0-pyhd3deb0d_0
      pyparsing          conda-forge/noarch::pyparsing-2.4.7-pyh9f0ad1d_0
      pytest             conda-forge/linux-64::pytest-6.2.5-py39hf3d152e_0
      toml               conda-forge/noarch::toml-0.10.2-pyhd8ed1ab_0
    
    
    Proceed ([y]/n)? y
    
    
    Downloading and Extracting Packages
    attrs-21.2.0         | 44 KB     | ################################################################################################################################################################### | 100% 
    pluggy-1.0.0         | 25 KB     | ################################################################################################################################################################### | 100% 
    toml-0.10.2          | 18 KB     | ################################################################################################################################################################### | 100% 
    iniconfig-1.1.1      | 8 KB      | ################################################################################################################################################################### | 100% 
    more-itertools-8.10. | 44 KB     | ################################################################################################################################################################### | 100% 
    py-1.10.0            | 73 KB     | ################################################################################################################################################################### | 100% 
    packaging-21.0       | 35 KB     | ################################################################################################################################################################### | 100% 
    pytest-6.2.5         | 433 KB    | ################################################################################################################################################################### | 100% 
    pyparsing-2.4.7      | 60 KB     | ################################################################################################################################################################### | 100% 
    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done
    

    安装pandas依赖hypothesis

    (cooper) cooper@cooper:~$ conda install hypothesis
    Collecting package metadata (current_repodata.json): done
    Solving environment: done
    
    ## Package Plan ##
    
      environment location: /home/cooper/anaconda3/envs/cooper
    
      added / updated specs:
        - hypothesis
    
    
    The following packages will be downloaded:
    
        package                    |            build
        ---------------------------|-----------------
        click-8.0.3                |   py39hf3d152e_0         146 KB  conda-forge
        hypothesis-6.23.4          |     pyhd8ed1ab_0         249 KB  conda-forge
        sortedcontainers-2.4.0     |     pyhd8ed1ab_0          26 KB  conda-forge
        ------------------------------------------------------------
                                               Total:         422 KB
    
    The following NEW packages will be INSTALLED:
    
      click              conda-forge/linux-64::click-8.0.3-py39hf3d152e_0
      hypothesis         conda-forge/noarch::hypothesis-6.23.4-pyhd8ed1ab_0
      sortedcontainers   conda-forge/noarch::sortedcontainers-2.4.0-pyhd8ed1ab_0
    
    
    Proceed ([y]/n)? y
    
    
    Downloading and Extracting Packages
    sortedcontainers-2.4 | 26 KB     | ################################################################################################################################################################### | 100% 
    hypothesis-6.23.4    | 249 KB    | ################################################################################################################################################################### | 100% 
    click-8.0.3          | 146 KB    | ################################################################################################################################################################### | 100% 
    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done
    

    单元测试Pandas

    这个测试可能要耗费一段时间,耐心等一会;

    >>> import pandas as pd
    >>> pd.test()
    running: pytest --skip-slow --skip-network --skip-db /home/cooper/anaconda3/envs/cooper/lib/python3.9/site-packages/pandas
    ============================================================================================ test session starts =============================================================================================
    platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
    rootdir: /home/cooper
    plugins: hypothesis-6.23.4
    collected 152863 items / 21 skipped / 152842 selected    
    

    测试最后结果,中间过程省略:

    ========================================================================================== short test summary info ===========================================================================================
    FAILED anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/test_clipboard.py::test_raw_roundtrip[\U0001f44d...] - pandas.io.clipboard.PyperclipException: 
    FAILED anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/test_clipboard.py::test_raw_roundtrip[\u03a9\u0153\u2211\xb4...] - pandas.io.clipboard.PyperclipException: 
    FAILED anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/test_clipboard.py::test_raw_roundtrip[abcd...] - pandas.io.clipboard.PyperclipException: 
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/test_parquet.py::TestParquetPyArrow::test_s3_roundtrip_explicit_fs
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/test_parquet.py::TestParquetPyArrow::test_s3_roundtrip
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/test_parquet.py::TestParquetFastParquet::test_s3_roundtrip
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/json/test_compression.py::test_with_s3_url[None]
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/json/test_compression.py::test_with_s3_url[gzip]
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/json/test_compression.py::test_with_s3_url[bz2]
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/json/test_compression.py::test_with_s3_url[zip]
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/json/test_compression.py::test_with_s3_url[xz]
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_read_s3_jsonl
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_to_s3
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/parser/test_network.py::TestS3::test_parse_public_s3n_bucket
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/parser/test_network.py::TestS3::test_parse_public_s3a_bucket
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/parser/test_network.py::TestS3::test_parse_public_s3_bucket_nrows
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/parser/test_network.py::TestS3::test_parse_public_s3_bucket_chunked
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/parser/test_network.py::TestS3::test_parse_public_s3_bucket_chunked_python
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/parser/test_network.py::TestS3::test_parse_public_s3_bucket_python
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/parser/test_network.py::TestS3::test_infer_s3_compression
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/parser/test_network.py::TestS3::test_parse_public_s3_bucket_nrows_python
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/parser/test_network.py::TestS3::test_read_s3_fails
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/parser/test_network.py::TestS3::test_read_csv_handles_boto_s3_object
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/parser/test_network.py::TestS3::test_read_csv_chunked_download
    ERROR anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/tests/io/parser/test_network.py::TestS3::test_read_s3_with_hash_in_key
    ================================================ 3 failed, 134087 passed, 17679 skipped, 1051 xfailed, 42 xpassed, 4 warnings, 22 errors in 733.99s (0:12:13) ================================================
    

    有3 failed,不知道需要不需要处理,后面如果遇到问题会再跟进;

    结束

    今天送别了一位公司同事,一同和我们并肩奋斗三年多;给我留下了深刻的印象,一开始就在一起调试Camera,Audio,Display,他辅助帮忙整理硬件和结构的问题,我处理软件的问题;之后项目启动,基本为期两年的管理供应商,我们一直配合处理,默契很好;当我处理不了的问题,他能协助,他也是很积极肯干的人,给我最深的印象就是,联系供应商协助解决问题,不管现在是几点,是不是周末,说做马上就去做;而我确实不太愿意在特别的时间打扰别人,而他可以做到;

    如今他要走,我却不知道怎么送别,这对我来说也可能快到这个岁数了,会遇到自己的瓶颈;

    但是我们沟通对我触动很大的是,从来到现在的公司,一直在输出,却很少对自己有提高,这可能是我们大多数人的一个状况;忙碌的不知道自己在做什么,也不知道做这些对自己成长的意义,根本不去想我做这些能给自己,或者组织带来什么质地的变化;我感觉迷茫了,对于我自己来说,我需要继续努力学习,改变自己,让自己更能在这个北京呆下去,也许这样才能优雅的活着;

    展开全文
  • 使用镜像 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels ...conda config --set show_c...

    使用镜像
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/

    conda config --set show_channel_urls yes

    展开全文
  • bash Anaconda3-5.3.1-Linux-x86_64.sh -u
  • conda install numpy失败的问题解决

    千次阅读 2018-04-19 16:42:14
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ conda config --add channels ...conda config --add c...
  • conda & pip 安装NumPy速度不佳解决方案

    千次阅读 2020-07-17 15:32:20
    NumPy本身下载包不大,但源地址位于国外,下载速度很慢且不稳定浪费了很多时间,切换到国内镜像源后即可: pip: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy conda: 先切换到国内清华...
  • 我需要使用numpy才能使用OpenCV,所以我安装了Miniconda(而不是Miniconda3,因为我们在Python 2.7中工作),我用conda install numpy安装了numpy,它工作了,因为当我运行conda list时,我看到它在那里:Microsoft ...
  • Anaconda中升级numpy

    千次阅读 2020-11-27 16:38:08
    Anaconda中升级numpy 在Anaconda Prompt中输入 pip install --upgrade numpy
  • 升级numpy 打开Anaconda Prompt 输入命令:pip install --upgrade numpy 报错: 明显是pip版本过低! 先升级pip 输入命令:python -m pip install --upgrade pip 还是报错: ...再次更新numpy即可!!! ...
  • 常用conda操作(以numpy为例)

    千次阅读 2020-08-05 09:52:03
    anaconda search -t conda numpy anaconda show anaconda/numpy conda install --channel https://conda.anaconda.org/ukoethe numpy ...conda update conda # 检查更新 conda create -n ...
  • conda环境配置后,创建了Python环境,pycharm能正常使用conda的Python环境,但项目import相关依赖库(numpy,sklearn,tqdm,torch等)报错: No module named 'xxxx' 使用sudo conda install numpy成功下载安装后...
  • 下载conda,安装numpy,bwa

    千次阅读 2019-03-29 15:56:20
    //下载conda安装包,miniconda的安装包下载官网为https://conda.io/en/latest/miniconda.html sh 文件名(下载的安装包) //如果报错,将sh改为bash export PATH=/usr/bin:/bin //当更改环境变量时改错了,所有...
  • 我需要使用numpy以便我可以使用OpenCV,所以我安装了Miniconda(不是Miniconda3因为我们在Python 2.7中工作)而且我安装了numpyconda install numpy并且它有效,因为当我运行conda list时我发现它在那里:Microsoft ...
  • 下载前,要把原来的版本卸载 pip uninstall 名字 conda环境操作命令 查看 conda info --envs 创建 conda create -n env_name python=3.7 激活 activate my_env_name 退出 deactivate 删除 conda remove -n my_env_...
  • Anaconda安装教程及numpy环境配置

    千次阅读 2021-09-28 16:48:13
    输入conda install numpy(安装numpy包),回车。 注:安装numpy时要等大概30秒左右画面才会有显示,一定要等待安装完成出现如图内容后再退出窗口,不然会出错。 3.如果已安装numpy,再次安装则会出现如图提示。
  • 本人伪程序员一枚,某日心血来潮,想使用conda+VScode的方案应对日后的python编程任务,不幸的是,在新建了环境并在VScode中选择了对应的解释器后,使用import numpy总是出现如下报错 many reasons, often due to ...
  • numpy+mkl packages

    2018-08-13 16:42:52
    对于无法通过pip直接安装的用户,可以通过终端窗口cd到该文件的目录,然后通过pip安装该whl文件,即可安装成功,numpy和mkl在python编程中的用处很广泛。
  • python更新numpy出现的问题

    千次阅读 2020-11-04 23:03:44
    python更新numpy出现的问题 一开始由于tensorflow和numpy版本不一致报错 ModuleNotFoundError: No module named 'numpy.core._multiarray...pip install --user --upgrade numpy #将numpy更新到最新版本 刚才的小坑居
  • 我把我win7虚拟机的环境打包到舍友的win10电脑里面 1.确认conda虚拟环境,只有base环境 2.查看base环境工具包,并没有tf2的包 3.在anaconda3\env里面创建文件夹sf,将解压好的文件放在这个文件里...显示numpy...
  • 卸载比较简单,打开cmd直接pip uninstall numpy. 重新安装,需要在开始–所有程序——anaconda prompt右键,以管理员身份运行,输入conda install numpy即可 自动安装最新版,点击y确认即可。
  • So I have been having some trouble with ... I need to use numpy so that I can use OpenCV and so I installed Miniconda (Not Miniconda3 because we are working in Python 2.7) and I installed numpy with...
  • conda install numpy conda instal scipy 安装,两个包的版本是自动适配环境的,并且用 conda search scipy --info 查看了numpy版本是符合依赖关系的。 但是运行时报错: RuntimeError: module compiled ...
  • pip/conda 安装指定版本的包

    千次阅读 2020-08-13 10:13:46
    pip 和 conda 安装指定版本的包的指令略有不同,具体如下: 假设现在要安装numpy 包,版本是1.9.3 1、pip pip install numpy==1.9.3 2、conda conda install numpy=1.9.3
  • conda卸载,降级库

    千次阅读 2019-12-19 19:10:40
    conda卸载,降级库,而不删除依赖其的其他库conda uninstall和conda remove conda uninstall和conda remove ...使用conda uninstall numpy会把tensorflow等其他依赖numpy的库一起删除.此时加上con...
  • miniconda的安装,添加一些镜像,方便后面安装软件时,速度快一点。然后是安装各种工具包,其中的一些陷阱我在本文会一一列出,并提出一些对策,希望对同学们有所帮助。
  • 转载--安装numpy+mkl 教程

    千次阅读 2019-02-16 22:05:26
    https://blog.csdn.net/sinat_26933727/article/details/68953193 https://blog.csdn.net/weixin_38917807/article/details/81675233 ...   下载地址: http...
  • 我试过在conda里用pip重新安装numpynumpy就可以正常import,但是这会导致conda环境出问题,在使用某些其他库的时候也会出错,所以感觉治标不治本。想知道有没有同时使用sublime和anaconda...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 22,968
精华内容 9,187
关键字:

conda更新numpy