package-managers

Difference between conda and pip installs within a conda environment

故事扮演 提交于 2019-12-05 13:16:09
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 is only available in the PIP package manager, and so I simply type pip install gym . But in other

Import package or autoloading for PHP?

自古美人都是妖i 提交于 2019-12-05 13:08:21
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 the asterisk symbol is found at the end of the string, e.g. ('template.arras.*'). One of the benefits I

When using Swift Package Manager how can I generate an Xcode project file for development

纵然是瞬间 提交于 2019-12-05 09:52:51
问题 I am using the new open source Swift Package Manager and am able to download the files. I want the manager to create a "development environment" (Through Xcode) based on the packages it retrieved. Has anybody dealt with this? 回答1: Update: as mentioned in other answers, you can now generate Xcode project files with this command: swift package generate-xcodeproj Original answer: The Swift Package Manger (SPM) is cross platform, It works on Mac and Linux. The Xcode is Mac OS only, so I don't

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

血红的双手。 提交于 2019-12-05 08:31:42
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 example like so echo export PATH="/usr/local/sbin:$PATH" >> ~/.bash_profile So I went ahead and tried all

Enter\\Exit the PowerShell mode in the Package Manager Console window

放肆的年华 提交于 2019-12-05 08:16:37
I think I accidentally entered the PowerShell mode so currently my console says: PS> c:\dev\ I wonder how do you exit from PS> mode to get back to PM mode? I want the console window to show PM> so I can install packages The same thing happened to me. I tried to restart VS with no effect, the "Package Manager Console" started in PowerShell again. But this worked: close the "Package Manager Console" restart VS open Package Manager Console" 来源: https://stackoverflow.com/questions/8335160/enter-exit-the-powershell-mode-in-the-package-manager-console-window

Can Yarn and npm be used by multiple developers on the same project?

流过昼夜 提交于 2019-12-05 04:46:50
I work in a team of about 20 other developers. All of our projects utilize npm packages and currently all of our developers are running npm to manage those packages. I'm very curious about Yarn and have it currently installed on my machine. However I'm nervous to actually use it to install packages in case it screws up a project for other developers. My question is can one developer utilize Yarn on a project while other devs are using npm in the same repo? From what I've read, Yarn uses the same package.json file to get its dependencies. We ignore the node_modules in our repo, however we use

“npm isntall” command exists

怎甘沉沦 提交于 2019-12-04 23:50:36
When you type an illegal npm command, you are getting a user-friendly error message stating which commands are legal to use: $ npm illegal Usage: npm <command> where <command> is one of: add-user, adduser, apihelp, author, bin, bugs, c, cache, completion, config, ddp, dedupe, deprecate, docs, edit, explore, faq, find, find-dupes, get, help, help-search, home, i, info, init, install, isntall, issues, la, link, list, ll, ln, login, ls, outdated, owner, pack, prefix, prune, publish, r, rb, rebuild, remove, repo, restart, rm, root, run-script, s, se, search, set, show, shrinkwrap, star, stars,

emacs initialization and updating emacs packages

夙愿已清 提交于 2019-12-04 19:53:50
I am violating probably the most essential emacs package rule in my .emacs file by loading a specific path to an emacs (workgroups2) package which gets updated. So, everytime a new version is released and when I upgrade I have to edit my emacs file (this is the first line below). The following is the relevant section of my emacs file. How can I load this without adding a specific path? Let me know what other suggestions you have and thanks! To be clear the line we are considering is: (add-to-list 'load-path "~/.emacs.d/elpa/workgroups2-20130915.1509") (add-to-list 'load-path "~/.emacs.d/elpa

PIP always reinstalls package when using specific SVN revision

扶醉桌前 提交于 2019-12-04 19:51:25
问题 PIP always downloads and installs a package when a specific SVN revision is specified (slowing the syncing process considerably). Is there a way around this? Normally pip detects that the package is already installed in the environment and prompts to use --upgrade . My pip_requirements file has the following line: svn+http://code.djangoproject.com/svn/django/trunk/@16406#egg=Django1.4A Thanks for your help! Answer Must specify egg name as exact python package name. Must not use -e flag. Does

NuGet Package Restore is not restoring packages on build

狂风中的少年 提交于 2019-12-04 18:01:11
问题 I am moving our source code from Vault to TFS, not bothering with the migration or anything, just pulling a get latest in vault and adding it to TFS. The solution has got several projects, and each one has at least one NuGet package. I am trying to get Package Restore working again. It worked in Vault (but not the way it was supposed to). I was under a bit of a deadline, and it did not work at first, so I added a Pre-Build event to run nuget.exe against the packages.config for each project.