package-management

JavaScript equivalent to composer

一个人想着一个人 提交于 2020-01-15 15:31:27
问题 Is there a package dependency manager such as composer, but for JavaScript files. I want to use my js files that are in one project (one repository) in another project (another repository) What do you suggest to use? 回答1: try https://yarnpkg.com you have packages.json like composer.json you have CLI commands like composer you have yarn.lock like composer.lock https://yarnpkg.com/en/docs/usage 来源: https://stackoverflow.com/questions/17366723/javascript-equivalent-to-composer

Split requirements files in pip

浪子不回头ぞ 提交于 2019-12-18 11:39:13
问题 To create Python virtual environments I use virtualenv and pip. The workflow is very simple: $ virtualenv project $ cd project $ . bin/activate $ pip install -r /path/to/requirements/req1.txt $ pip install -r /path/to/requirements/req2.txt The number of different requirement files can grow enough to make handy to have a way to include them at once, so I'd rather prefer to say: $ pip install -r /path/to/requirements/req1_req2.txt with req1_req2.txt containing something like: include /path/to

Proper usage of Chocolatey (package update / version management)

核能气质少年 提交于 2019-12-11 03:58:34
问题 NOTE: This question was valid for Chocolatey 0.9.8 and bellow. Later versions are completely rewritten from PowerShell scripts to a C# application and whole process of package management was improved a lot. I have been using Chocolatey for some time. At the beginning I was excited, but after some time I'm not sure if it's usable yet. I'm concerned the most about proper way of package updating. For example, I have installed Atom editor using Chocolatey . New versions of Atom are released

python help('modules') returns ImportError

↘锁芯ラ 提交于 2019-12-11 01:13:27
问题 Recently, (I have no idea when), I installed this package called pymol. Today when I was trying to copy a list of all my install modules, I encountered this error. ~/Projects$ python -c "help('modules')" Please wait a moment while I gather a list of all available modules... Error: unable to initalize the pymol.cmd module Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pymol/cmd.py", line 117, in <module> from chempy import io ImportError: cannot import name io I've

Skip confirmation while using Install-Package?

江枫思渺然 提交于 2019-12-10 10:37:34
问题 I have added ChocolateyGet as a provider on Powershell so I can use it with PackageManagement (OneGet), it works but every package I try to install warns: https://www.chocolatey.org is not a trusted package source Then asks for confirmation. It also asks me if I agree to the license of the package. I wanted to make a script to automatically install some packages, but I needed this script to be unattended, and it's not possible now because it asks those two previous questions. Is there anyway

Is there a project file support like npm/package.json for Python's pip?

拟墨画扇 提交于 2019-12-09 14:04:13
问题 I just started working on a project where I needed to install a lot of dependencies via pip. The instructions were to do everything manually. I've used nodejs and maven before where this process is automated and the dependencies are isolated between projects. For example in node I can configure everything in package.json and just run npm install ik my project directory. Is there something similar for pip? 回答1: Check out anaconda. You can create lists of dependencies/packages and pass them to

Allow use of system python in conda env?

折月煮酒 提交于 2019-12-06 19:28:29
问题 Is there a way to force conda to use the system version of python (along with all of the system libraries) in a given env? I have conda enabled by default in my shell, which can get a bit annoying, because if I try to run a system python app, it gets a different version of python to what it is expecting (python still defaults to 2.7 on *buntu), and often won't run. I would like the root env of conda to just be a redirect to the system python install. 回答1: You need to edit all user shell run

Skip confirmation while using Install-Package?

泄露秘密 提交于 2019-12-06 07:35:30
I have added ChocolateyGet as a provider on Powershell so I can use it with PackageManagement (OneGet), it works but every package I try to install warns: https://www.chocolatey.org is not a trusted package source Then asks for confirmation. It also asks me if I agree to the license of the package. I wanted to make a script to automatically install some packages, but I needed this script to be unattended, and it's not possible now because it asks those two previous questions. Is there anyway to circumvent/automatically respond these confirmations? Like the y or yes command on Linux? You need

How to properly upgrade node using nvm

流过昼夜 提交于 2019-12-04 07:19:19
问题 Is it possible to upgrade node right in place, instead of manually installing the latest stable version? I have installed node.js version 5.0 with nvm, but now I want to update it to 5.4 . I'm trying to avoid having to manually reinstall all of my global packages ( e.g. by running npm install -g grunt-cli bower yo yoman-angular-generator blabla blablablabla ...). 回答1: This may work: nvm install NEW_VERSION --reinstall-packages-from=OLD_VERSION For example: nvm install 6.7 --reinstall-packages

How to properly upgrade node using nvm

梦想与她 提交于 2019-12-02 13:47:29
Is it possible to upgrade node right in place, instead of manually installing the latest stable version? I have installed node.js version 5.0 with nvm , but now I want to update it to 5.4 . I'm trying to avoid having to manually reinstall all of my global packages ( e.g. by running npm install -g grunt-cli bower yo yoman-angular-generator blabla blablablabla ...). gabrielperales This may work: nvm install NEW_VERSION --reinstall-packages-from=OLD_VERSION For example: nvm install 6.7 --reinstall-packages-from=6.4 then, if you want, you can delete your previous version with: nvm uninstall OLD