简体   繁体   English

无法在Anaconda中安装PuLP

[英]Unable to install PuLP in Anaconda

I have been getting error-messages when trying to install PuLP within my Anaconda environment: 尝试在Anaconda环境中安装PuLP时出现错误消息:

Preparing transaction: done Verifying transaction: done Executing transaction: failed ERROR conda.core.link:_execute(507): An error occurred while installing package 'conda-forge/label/cf201901::automat-0.7.0-py_1'. 准备事务:完成验证事务:完成执行事务:失败错误conda.core.link:_execute(507):安装软件包“ conda-forge / label / cf201901 :: automat-0.7.0-py_1”时发生错误。 CondaError: Cannot link a source that does not exist. CondaError:无法链接不存在的源。 C:\\Users\\MarkKremer\\Anaconda3\\Scripts\\conda.exe Running conda clean --packages may resolve your problem. C:\\ Users \\ MarkKremer \\ Anaconda3 \\ Scripts \\ conda.exe运行conda clean --packages可能会解决您的问题。 Attempting to roll back. 试图回滚。

I have tried all kind of this to resolve this issue, but nothing seems to work. 我已经尝试过各种方法来解决此问题,但似乎没有任何效果。 The strange thing is that I have had PuLP working on this computer before, but somehow I managed to break it and can't get it fixed. 奇怪的是,我以前曾在这台计算机上使用过PuLP,但是以某种方式设法将其破坏,无法修复。

What I've tried: 我尝试过的

  1. Different commands to install such as conda install -c conda-forge pulp and conda install -c conda-forge/label/cf201901 pulp ) 不同的安装命令,例如conda install -c conda-forge pulp conda install -c conda-forge/label/cf201901 pulp
  2. Using conda clean --all , conda clean --packages etc. 使用conda clean --allconda clean --packages
  3. Fully delete and reinstall Anaconda. 完全删除并重新安装Anaconda。
  4. Format the harddisk and create a clean install of Windows 10. 格式化硬盘并创建Windows 10的全新安装。

None of these things seem to work. 这些东西似乎都不起作用。 Does anyone recognize this problem or have any suggestions for possible solutions? 是否有人认识到此问题或对可能的解决方案有任何建议?

I'm using Python 3.7 on Windows 10, with a 32bit Anaconda installation 我在Windows 10上使用Python 3.7,安装了32位Anaconda

I finally managed to resolve the issue myself. 我终于设法自己解决了这个问题。 In case anyone else is experiencing this issue, I'll share my solution: 万一其他人遇到此问题,我将分享我的解决方案:

My solution: 我的解决方案:

  • Reinstall the automat package by running conda uninstall automat followed by conda install automat . 通过运行conda install automat conda uninstall automat然后运行conda install automat conda uninstall automat重新安装automat软件包。
  • Open Anaconda Promst as administrator 以管理员身份打开Anaconda Promst
  • Run conda install -c conda-forge/label/cf201901 pulp 运行conda install -c conda-forge/label/cf201901 pulp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM