package-managers

Using Conan to install packages directly from GitHub

送分小仙女□ 提交于 2020-06-17 09:43:53
问题 Following this feature request, there are some Conan packages hosted on Bincrafters GitHub organization: Conan package for OpenCL Headers Conan package for Khronos OpenCL CLHPP Conan package for OpenCL ICD Loader I tried searching them on the command line with conan search <packageName> using different queries with no avail. I'm not sure how Conan package manager works. With HomeBrew one could tap different repositories or with pip directly install from a GitHub repository. I would appreciate

How to uninstall all unused packages in a conda virtual environment?

大兔子大兔子 提交于 2020-05-09 19:35:20
问题 I have a conda virtual environment with several unused packages installed inside it (either using pip install or conda install ). What is the easiest way to clean it up so that only packages that are actually used by my code remain, and the others are uninstalled? 回答1: conda clean --yes --all will sanitize everything. But take note: if you ever want to do any type of --offline operations, don't use --all ; be more selective. 回答2: The difference between conda clean --yes --all and conda clean

How to uninstall all unused packages in a conda virtual environment?

▼魔方 西西 提交于 2020-05-09 19:35:09
问题 I have a conda virtual environment with several unused packages installed inside it (either using pip install or conda install ). What is the easiest way to clean it up so that only packages that are actually used by my code remain, and the others are uninstalled? 回答1: conda clean --yes --all will sanitize everything. But take note: if you ever want to do any type of --offline operations, don't use --all ; be more selective. 回答2: The difference between conda clean --yes --all and conda clean

Import python packages with different versions installed

淺唱寂寞╮ 提交于 2020-03-22 10:34:51
问题 I have a problem. I'm trying to install a script written in python. It requires 3.4+ version, and I have python2.7 python3.4 python3.5 installed on my ubuntu 15.10 by default. During setup it throws an error which I found is concerning missing packages in python. The error is File "/usr/lib/python3.4/distutils/dist.py", line 1209, in set_requires distutils.versionpredicate.VersionPredicate(v) File "/usr/lib/python3.4/distutils/versionpredicate.py", line 114, in __init__ raise ValueError(

Import python packages with different versions installed

核能气质少年 提交于 2020-03-22 10:33:34
问题 I have a problem. I'm trying to install a script written in python. It requires 3.4+ version, and I have python2.7 python3.4 python3.5 installed on my ubuntu 15.10 by default. During setup it throws an error which I found is concerning missing packages in python. The error is File "/usr/lib/python3.4/distutils/dist.py", line 1209, in set_requires distutils.versionpredicate.VersionPredicate(v) File "/usr/lib/python3.4/distutils/versionpredicate.py", line 114, in __init__ raise ValueError(

Problem generating manifest. Could not load assembly Microsoft.Windows.SDK.Contracts when installing nuget Microsoft.Toolkit.Forms.UI.Controls.Webview

那年仲夏 提交于 2020-02-25 05:59:32
问题 I'm getting the following errors after installing the nuget package Microsoft.Toolkit.Forms.UI.Controls.Webview: Severity Code Description Project File Line Suppression State Error Problem generating manifest. Could not load file or assembly 'C:\Users\Vladimir.nuget\packages\microsoft.windows.sdk.contracts\10.0.18362.2005\ref\netstandard2.0\Windows.Media.MediaControlContract.winmd' or one of its dependencies. An attempt was made to load a program with an incorrect format. OutlookAddIn Error

Problem generating manifest. Could not load assembly Microsoft.Windows.SDK.Contracts when installing nuget Microsoft.Toolkit.Forms.UI.Controls.Webview

一世执手 提交于 2020-02-25 05:57:12
问题 I'm getting the following errors after installing the nuget package Microsoft.Toolkit.Forms.UI.Controls.Webview: Severity Code Description Project File Line Suppression State Error Problem generating manifest. Could not load file or assembly 'C:\Users\Vladimir.nuget\packages\microsoft.windows.sdk.contracts\10.0.18362.2005\ref\netstandard2.0\Windows.Media.MediaControlContract.winmd' or one of its dependencies. An attempt was made to load a program with an incorrect format. OutlookAddIn Error

Python package managers and Node.js

霸气de小男生 提交于 2020-01-28 11:07:45
问题 I am trying to compile python scripts using Node.js. The python scripts include some modules I have installed. My package manager for python is Anaconda, so I tried to supply the {"shell":"path to anaconda prompt"} option in : var exec = require('child_process').exec; exec('python hello.py',{"shell":"path to anaconda prompt"}, ..callback) However, I get an error: { Error: spawn C:\Users\dream\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)\Anaconda Prompt (Anaconda3)

Why doesn't pip freeze show opencv?

醉酒当歌 提交于 2020-01-15 06:08:46
问题 I've installed OpenCV on my mac and I can import it in Python: >>> import cv2 >>> cv2.__version__ '3.2.0' but when I use pip freeze the package is not in the list: $ pip freeze | grep cv How can this be? 回答1: As @ZdaR suggested in the comment above, it was because opencv wasn't installed through pip. In any case I wish you all a beautiful day. 来源: https://stackoverflow.com/questions/42313103/why-doesnt-pip-freeze-show-opencv

Why doesn't pip freeze show opencv?

我怕爱的太早我们不能终老 提交于 2020-01-15 06:08:37
问题 I've installed OpenCV on my mac and I can import it in Python: >>> import cv2 >>> cv2.__version__ '3.2.0' but when I use pip freeze the package is not in the list: $ pip freeze | grep cv How can this be? 回答1: As @ZdaR suggested in the comment above, it was because opencv wasn't installed through pip. In any case I wish you all a beautiful day. 来源: https://stackoverflow.com/questions/42313103/why-doesnt-pip-freeze-show-opencv