package-managers

Why cabal sandbox init does not change PATH like virtualenv does?

試著忘記壹切 提交于 2019-12-09 10:40:25
问题 Haskell newbie and Python guy here. I think I may be missing something here but if you look at Yesod's quickstart, the autor install some packages before cabal sandbox init . I have seen the same pattern elsewhere. Questions: Am I missing something? Is this the real way to use cabal sandbox? Why can't (or shouldn't) I install yesod-bin inside a sandbox? What if I use different versions of yesod-bin throughout some projects? If there is some libraries that install binaries inside .cabal

Visual Studio 2017 Professional- Unable to find package at source

我与影子孤独终老i 提交于 2019-12-08 19:47:27
I was trying to add package through nuget package manager=> package manager console and from Manage Nuget packages from solution directly. I am trying to install Newtonsoft.Json from Package Manager Like this Install-Package Newtonsoft.Json but unable to find from the source i.e Name: nuget.org Source: https://api.nuget.org/v3/index.json This gives me result like this: PM> Install-Package Newtonsoft.Json Install-Package : Unable to find package 'Newtonsoft.Json' at source ''. At line:1 char:1 + Install-Package Newtonsoft.Json + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:)

Persistent Warning: “Multiple packages failed to uninstall.”

喜夏-厌秋 提交于 2019-12-08 15:41:17
问题 I have a warning message that came to dinner but now won't leave. Multiple packages failed to uninstall. Restart Visual Studio to finish the process. Unfortunately, however, restarting Visual Studio has no effect—the warning remains. I've tried cleaning the solution as well as the project; all of my projects' assembly references are intact. I've also issued an Update-Package -Reinstall command—which succeeded—to no avail. How can I set about fixing this? 回答1: I believe this may have been

Visual Studio 2012 Package Manager Console error

北城余情 提交于 2019-12-08 14:32:18
问题 When trying to install anything with the Package Manager Console, I get this error: Install-Package : The schema version of 'Microsoft.Bcl' is incompatible with version 2.0.30625.9003 of NuGet. Please upgrade NuGet to the latest version from http://go.microsoft.com/fwlink/?LinkId=213942. At line:1 char:1 + Install-Package Moment.js + ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException + FullyQualifiedErrorId : NuGetCmdletUnhandledException

Enthought Canopy Package Manager got stuck on MacOs High Sierra

…衆ロ難τιáo~ 提交于 2019-12-08 09:12:16
问题 I tried to update my python packages by using the feature: update all of the Enthought Canopy Package Manager. After I started to update it got frozen at some point. This is what I see: As documentation writes here in cases when an update is in progress one should not close the Package Manager window. What should I do in this case. I can't find any solution after some googling. Any help is highly appreciated! 回答1: : Force-close Canopy If you are not already running the current version of

Visual Studio 2017 Professional- Unable to find package at source

旧城冷巷雨未停 提交于 2019-12-08 07:52:46
问题 I was trying to add package through nuget package manager=> package manager console and from Manage Nuget packages from solution directly. I am trying to install Newtonsoft.Json from Package Manager Like this Install-Package Newtonsoft.Json but unable to find from the source i.e Name: nuget.org Source: https://api.nuget.org/v3/index.json This gives me result like this: PM> Install-Package Newtonsoft.Json Install-Package : Unable to find package 'Newtonsoft.Json' at source ''. At line:1 char:1

Importing from another directory

懵懂的女人 提交于 2019-12-07 14:31:59
问题 I am structuring my Python application with the following folder architecture (roughly following the outline here): myapp: myapp_service1: myapp_service1_start.py ... myapp_service2: myapp_service2_start.py ... myapp_service3: myapp_service3_start.py ... common: myapp_common1.py myapp_common2.py myapp_common3.py ... scripts: script1.py script2.py script3.py ... tests: ... docs: ... LICENSE.txt MANIFEST.in README This is ideal file/folder hierarchy for me, however, I am confused on how to

Import package or autoloading for PHP?

為{幸葍}努か 提交于 2019-12-07 08:59:01
问题 What solution would you recommend for including files in a PHP project? There aren't manual calls of require/include functions - everything loads through autoload functions Package importing, when needed. Here is the package importing API: import('util.html.HTMLParser'); import('template.arras.*'); In this function declaration you can explode the string with dots (package hierarchy delimeter), looping through files in particular package (folder) to include just one of them or all of them if

How to fix `brew doctor` errors on Mac OSX 10.9 (unlinked kegs in Cellar and Homebrew sbin not found)?

孤街浪徒 提交于 2019-12-07 04:14:20
问题 I'm having some trouble with brew which I'm trying to solve. When I currently run brew doctor I get the following output: Warning: You have unlinked kegs in your Cellar Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run `brew link` on these: autoconf libevent Warning: Homebrew's sbin was not found in your PATH but you have installed formulae that put executables in /usr/local/sbin. Consider setting the PATH for

Difference between conda and pip installs within a conda environment

帅比萌擦擦* 提交于 2019-12-07 04:08:31
问题 I seem to be asking myself this question a lot, having recently switched to using conda environments (Anaconda), but I end up Googling and not getting too far. I now run all my projects within their own conda environments, as I like to keep everything as separate and with as little dependencies on other programs as possible. For example, a recent environment: conda create -n RL numpy tensorflow-gpu Then I activate the environment, and realise "Oh - I forgot to install gym". In this case, this