w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to keep track of pip installed packages in an Anaconda (conda) env?
conda will only keep track of the packages it installed. And pip will give you the packages that were either installed using the pip installer itself or they used setuptools in their setup.py so conda build generated the egg information. So you have basically three options. You can take the union of the conda list and pip freeze and manage packages that were installed using conda (that show in the conda list) with the conda package manager and the ones that are installed with pip (that show in pip freeze but not in conda list) with pip. Install in your environment only the python, pip and distribute packages and manage everything with pip. (This is not that trivial if you're on Windows...) Build your own conda packages, and manage everything with conda. I would personally recommend the

Categories : Python

Can mvn install packages globally (e.g. command line tools like nutch)?
Since maven is java based and from java you can do anything, and you can write your own life-cycles and goals, the answer is: yes, it is possible. Here you can found an example: https://community.jboss.org/wiki/CreatingACustomLifecycleInMaven It is also possible execute a custom script - or whatever you want - with Exec Maven Plugin For more, see: http://mojo.codehaus.org/exec-maven-plugin/ Or on stackoverflow: I want to execute shell commands from maven's pom.xml Regards

Categories : Java

pep381client(pep381run) wont download packages from the official pypi server
pep381 client use http, but pypi can only be used https. This program is not implemented function that redirect url. I modified the program as this. file: (YOUR INSALLED DIRECTORY)/pep381client/__init__.py 9: -BASE = 'http://'+pypi +BASE = 'https://'+pypi 28: - _conn = httplib.HTTPConnection(pypi) + _conn = httplib.HTTPSConnection(pypi) 37: - _conn = httplib.HTTPConnection(pypi) + _conn = httplib.HTTPSConnection(pypi)

Categories : Python

How to force virtualenv to install latest setuptools and pip from pypi?
It's not supported for security reasons. Using virtualenv.py as an isolated script (i.e. without an associated virtualenv_support directory) is no longer supported for security reasons and will fail with an error. Along with this, --never-download is now always pinned to True, and is only being maintained in the short term for backward compatibility (Pull #412). I can't use the --extra-search-dir option either because it's currently broken https://github.com/pypa/virtualenv/issues/327 Looks like the only option is to simply wait for the virtualenv maintainers to update the bundled packages?

Categories : Python

Anaconda: Where and how to install a non-distribution package to support a flask-wtf conda recipe?
The only way that conda build will see dependencies is if they also exist as conda packages. So you need to build the conda package for wtforms as well. Fortunately, the recipe for this exists in the conda-recipes as well, so you can just clone that repo and do conda build wtforms conda build flask This works because conda is able to find the packages that it has already built. To make sure that they don't get lost if you delete the build directory, it's recommended to upload your packages to Binstar. If you do that and conda install binstar, after you build, it will ask you if you want to upload the package to binstar. If you do that, and also add your Binstar repo to your .condarc, those packages will always be available for you to conda install.

Categories : Python

How can I make setup tools install a github forked PyPI package?
You should be able to point pip at the URL of your forked repo with your bugfix because pip can install directly from git repos. $ pip install git+git://github.com/my-username/not-mine#egg=not-mine You can modify the pip install command to specify a particular commit, branch, tag, etc. with the "@" symbol before the "#". $ pip install git+git://github.com/my-username/not-mine@bugfix_branch#egg=not-mine

Categories : Python

Install multiple packages on linux (like pip install -r requirements.txt)
Put the list of packages in a text file(say test.txt) with package names separated by spaces, like this - python ruby foo bar then you can just install with apt-get like this - sudo apt-get install $(cat test.txt)

Categories : Linux

Cannot install two packages that use the same namespace
After installing one of your packages and downloading the other… You're not including testsuite/__init__.py and testsuite/prettyprint/__init__.py in the source files. The docs on Namespace Packages the setuptools/pkg_resources way explains: Note, by the way, that your project's source tree must include the namespace packages' __init__.py files (and the __init__.py of any parent packages), in a normal Python package layout. If you don't actually install these files, they don't do any good. You just end up with a testsuite with nothing in it but prettyprint, and that has nothing in it but outcomes, so testsuite and testsuite.prettyprint are not packages at all, much less namespace packages.

Categories : Python

How to install atmosphere packages without meteorite?
You can create a directory called /packages in your project & then manually install each package and its dependencies. e.g for 'meteor router' in /packages git clone https://github.com/tmeasday/meteor-router.git mv meteor-router router git clone --recursive https://github.com/tmeasday/meteor-page-js-ie-support.git mv meteor-page-js-ie-support page-js-ie-support The second is a dependency on meteor router which you can see on the package's atmosphere page. It's recursive to make sure the submodule pages-js is also git cloned in. Meteor 0.65+ As pointed out by thatjuan: Once you do this, you just need to add the main one to your project. You don't have to add the dependencies. meteor add router

Categories : Meteor

Using install.packages with custom temp dir
The documentation in help(tempdir) pretty clearly states that TMP, TMPDIR, ... are used: By default, ‘tmpdir’ will be the directory given by ‘tempdir()’. This will be a subdirectory of the per-session temporary directory found by the following rule when the R session is started. The environment variables ‘TMPDIR’, ‘TMP’ and ‘TEMP’ are checked in turn and the first found which points to a writable directory is used: if none succeeds ‘/tmp’ is used. So if setting one alone does not help, maybe you want to set several, and make sure the permissions on your 'replacement directory' are permissive enough etc pp.

Categories : R

How to install Chocolatey packages offline?
Right now we don't have all of them setup. You can edit the package to point the installer to the local resource and rebuild the packages as a workaround for now. You can follow some of our feed about it here: https://groups.google.com/forum/#!searchin/chocolatey/offline

Categories : Misc

CertificateError when trying to install packages on a virtualenv
When I try to connect to pypi I get the following error: pypi.python.org uses an invalid security certificate. The certificate is only valid for the following names: *.addvocate.com , addvocate.com So either pypi is using the wrong ssl certificate or somehow my connection is being routed to the wrong server. In the meantime I have resorted to downloading directly from source URLs. See http://www.pip-installer.org/en/latest/usage.html#pip-install

Categories : Python

How can I install Leiningen packages behind a firewall?
Dependency Tree In order to figure out which jars your project needs you can do: $ lein deps :tree Which will show you something that is called a "dependency tree". It will look similar to: [clj-time "0.5.0"] [joda-time "2.2"] [clojure-complete "0.2.3"] [org.myproject/some-proto "0.0.1-20130523.145830-9"] [org.flatland/protobuf "0.7.2"] [ordered-collections "0.4.0"] [org.flatland/schematic "0.1.0"] [org.flatland/useful "0.9.0"] [com.datomic/datomic-free "0.8.3862"] ... Installing Jars with Lein One simple way to install manually downloaded jars would be to use "lein-localrepo": $ lein localrepo install [-r repo-path] [-p pom-file] <filename> <[groupId/]artifactId>

Categories : Clojure

Can't install basic packages on Debian EC2 with Aptitude/apt-get
If you install a package using dpkg that doesn't have all it's dependencies, you can fix it by running: apt-get install -f Note that it will only find packages in your current repositories. If some are still missing, try apt-get update. If that still doesn't work, you will need to find an apt repo which hosts those packages, or install the packages manually.

Categories : Amazon

Make apt install packages from a specific repository
What I ended up doing is simply install all packages and then remove the ones with an old build. I.e. sudo add-apt-repository ppa:marutter/c2d4u -y sudo add-apt-repository ppa:marutter/rrutter -y sudo apt-get update sudo apt-get install r-bioc-* sudo apt-get install r-cran- And then in R: which(installed.packages()[,"Built"] < 3.0)

Categories : R

Packages installed by `pip install -r requirements.txt` are not found
Are you doing sudo pip install django-mediasync or sudo pip install -r requirements.txt? If so, it'll install it outside of the virtualenv. See How to install which programs requires "sudo" in virtualenv?. Basically because your user should own the virtualenv directory, you don't need superuser privileges to install anything via pip. Do which pip and sudo which pip and you will see they are different. The other possibility may be that your requirements.txt is not installing correctly. It may output lines like the line you mention, but apparently pip will scan all the packages in the requirements.txt before installing anything. If there is any error, it will abort the install for all packages.

Categories : Python

Why does `pub install` keep creating `packages` link in all the subdirs of `web`?
When Dart sees an import like: import 'package:foo/foo.dart'; It translates it to: import '<url of your entrypoint>/packages/foo/foo.dart'; So, say your app's entrypoint is in: myapp/web/app/main.dart If it has a "package:" import, like above, it will remap it to: import 'myapp/web/app/packages/foo/foo.dart'; That means that for Dart to be able to find foo.dart, there needs to be a packages directory inside app that contains foo/foo.dart. Part of pub's job is to set that up for you. This is definitely not the nicest part of working with Dart and pub. Spewing symlinks everywhere is gross, but it deals with the limitations that the language places on us. Over time, we're hoping to move away from having to create these symlinks. More details on this here.

Categories : Dart

What packages do I need in order to install scikit-learn on Debian
The exact list of dependencies is written in the the documentation. scikit-learn is available in recent versions of Debian, so if you want to install all the scikit-learn build dependencies at once you can just do: sudo apt-get build-dep python-sklearn Also the Neuro Debian APT repository is updated at each scikit-learn release, so that you can get debian packages for the latest versions from there.

Categories : Python

How to install new packages for pyramid without getting a pkg_resources.DistributionNotFound: once a project has been created
pip and setup.py develop should not to be mixed. The latter uses easy_install which is not compatible with pip in the case of namespace packages (these are packages that are installed as subpackages of another parent, such as zope.sqlalchemy installing only the .sqlalchemy part of the full zope.* package). Namespace packages will cause problems between pip and easy_install. On the other hand, most other packages will work fine with whatever system you choose but it's better for you to be consistent. Another thing to double check is that you are actually installing the packages into your virtualenv. You should be able to open the python cli in your virtualenv and import the package. If you can't, then it's probably not installed.

Categories : Python

Pip doesn't install packages to activated virtualenv, ignores requirements.txt
My usual workflow is to pip freeze > someFile.txt and then install with pip install -r someFile.txt So I'm certain that this should work just fine. Unfortunately I can't really tell you anything besides make sure to check that You really are in the virtualenv that you think you are in. Make sure to run workon yourVirtualEnvName to activate it just in case that matters. Make sure to check that pip is within your virtualenv. which pip gives me /path/to/home/.virtualenvs/myVirtEnv/bin/pip Sorry I can't give you a more concrete answer. I have to do this semi-regularly and I've never had a problem with it skipping dependencies. Best of luck!

Categories : Python

AWS Elastic Beanstalk "composer install" fails to find packages
I found out what the problem was. The composer.lock file was in .gitignore and so composer on AWS didn't get it... See here for more details: http://www.michaelgallego.fr/blog/2013/08/19/solving-the-elastic-beanstalk-composer-deployment-problems/

Categories : Amazon

Modify preseed file to automatically install packages in /pool/extra
Why don't you create a metapackage which depends on all the packages you want installed, and simply set up the preseed to install that. equivs was designed for this sort of thing, although it's not very hard to create a metapackage from scratch with the standard packaging tools, either. To instruct the installer to install packages, you can include the line d-i pkgsel/include string package1 package2 in your preseed file. If you just want to install all the *.deb files from a directory (not a full Apt repository with Packages.gz etc) then maybe d-i preseed/late_command string in-target dpkg -i /pool/extras/*.deb but I would actually prefer a full repo; basically it just takes a run of dpgk-scanpackages.

Categories : Ubuntu

During pbuilder build: run setup.py --install-layout=deb fails (no rights to write to /usr/lib/python2.7/dist-packages)
Your debian/rules install target must never install any files outside of the build tree. Instead, it should be installing to the package build directory (which, depending on how you're building the rest of the package, is probably debian/$packagename/. With a setup.py, the right switch to accomplish this is --root=debian/$packagename. If you use dh_python2, dh_auto_install, and other debhelper tools appropriately, they will take care of that for you, plus a lot of other important housekeeping such as bytecompiling for various python installations on package install.

Categories : Ubuntu

Post-Build command exited with code 1 (trying to automatically generate NuGet packages)
I finally ended up solving the problem: I had to copy an instance of Nuget to the folder where my solution lies. Even if Nuget was in the path. I still don't know why VS was not able to find nuget if started from a post-build event (I'm not using nuget anymore, it doesn't fit my needs as I was expecting something similar to maven).

Categories : Visual Studio 2010

How to run Conda?
It turns out that I had not set the path. To do so, I first had to edit .bash_profile (I downloaded it to my local desktop to do that, I do not know how to text edit a file from linux) Then add this to .bash_profile: PATH=$PATH:$HOME/anaconda/bin

Categories : Python

python packages -- overriding built-in packages and the dreaded "Module xxxx was already imported" warning
Rename myprogramxlrd to myprogramfrozen_xlrd. Then import it with try: import xlrd except ImportError: import frozen_xlrd as xlrd Alternatively, you could tell Python to silently ignore this particular UserWarning: import warnings warnings.filterwarnings("ignore", message="Module xlrd was already imported", category=UserWarning) Place this early on in the program, before scikits gets imported.

Categories : Python

How to install all the packages that are on machine A onto machine B?
This should be a start sudo dpkg --set-selections < (ssh othermachine dpkg --get-selections) Also consider puppet Ubuntu landscape

Categories : Ubuntu

The command rbenv install is missing
The install command is not embedded into rbenv, it comes from the ruby-build plugin. You can install it using the command: git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build On Mac OS X you can install it through homebrew: brew install ruby-build On Debian (version >= 7) and Ubuntu (version >= 12.10) both rbenv and ruby-build can be installed using apt-get (or aptitude): apt-get install rbenv ruby-build On FreeBSD ruby-build is available in the Ports Collection, it can be install both as a binary package or build from the port: # Using pkgng rbenv will be installed pkg install ruby-build # Building ruby-build form Ports will install rbenv only if the RBENV option is set cd /usr/ports/devel/ruby-build make install

Categories : Ruby

What's an npm command to install devDependencies globally?
You are using npm install -g <pkg> wrong here. -g indicates, that it's no project dependencies, than rather you global (PC wide). Those plugins are no devDependencies, but CLI runners. What you want is npm install --save-dev every single package upon initialisation. When you need to install those dependencies again you'd just run npm install and include something like ./node_modules/.bin/jshint to your package.json scripts in order not to depend on the CLIs.

Categories : Node Js

make: install: Command not found
There is no problem with the makefile. Check if you have install utility $~ install --help If you dont have then you can get it from GNU coreutils. If you have install somewhere then export its path in PATH variable export PATH=$PATH:/path/to/install-utility

Categories : GIT

OSX bundler install command not found
try to run gem env and then you will get something like this: RubyGems Environment: - RUBYGEMS VERSION: 1.8.23 - RUBY VERSION: 1.9.3 (2013-06-27 patchlevel 448) [x86_64-darwin12.5.0] - INSTALLATION DIRECTORY: /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1 - RUBY EXECUTABLE: /usr/local/Cellar/ruby193/1.9.3-p448/bin/ruby **- EXECUTABLE DIRECTORY: /usr/local/Cellar/ruby193/1.9.3-p448/bin** - RUBYGEMS PLATFORMS: - ruby - x86_64-darwin-12 - GEM PATHS: - /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1 - /Users/madhava/.gem/ruby/1.9.1 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http:

Categories : Ruby On Rails

Install command is not working in Composer
If you really enabled openSSL for php CLI, then it should show up when you run php -m in a terminal. If it does not, then run php --ini and edit the php.ini that shows up in the output of this command.

Categories : PHP

Private PyPI containing package with same name
Use a --find-links direct link to the index page listing those packages: pip install --find-links <Private_PyPI_URL>/package_name package_name but you really want to use an internal version number (append _companyname_1, etc.) and pin to those version numbers. See Specifying Your Project’s Version in the Packaging Guide. That way you can still switch between your version and the publicly released version simply by switching version numbers. Another thing you want to do is use a proper pip requirements file to pin version numbers, and version-control that file. You can include indexes and find-links urls in that file too.

Categories : Python

Pip install error. Setuptools.command not found
Try installing: sudo apt-get install python-setuptools if this doesn't work try: curl -O http://python-distribute.org/distribute_setup.py python distribute_setup.py easy_install pip Edit: If you have several (possible conflicting) python installations or environments, the following commands can be useful to debug which executables are being used: which python which pip which easy_install They should "match". It can happen for example that you have pip installing packages for an EPD or global distribution while the current python that is being used corresponds to a local environment (or something different), in which case it might not be able to see the installed packages.

Categories : Python

Play Framework : Cannot find the install command
The install command is for Play 1.x only, as are the modules listed the module directory. There are some modules for 2.1.1. To install modules in Play 2.x projects, you have to add them as dependencies in project/Build.scala. The module's readme should tell you to do to get it running.

Categories : Java

How can I do a yum install in a linux command line from a jar file?
Try this : public class test { public static void main(String[] args) { Runtime rt = Runtime.getRuntime(); String cmd[] = new String[] {"yum", "-y", "install", "rpm-build"}; Process ps = rt.exec(cmd); BufferedReader readerStd = new BufferedReader(new InputStreamReader(ps.getInputStream())); BufferedReader readerErr = new BufferedReader(new InputStreamReader(ps.getInputStream())); String line = null; while ((line = readerStd.readLine()) != null) { System.out.println(line); } System.out.println("------ Std Err -------"); while ((line = readerErr.readLine()) != null) { System.out.println(line); } if (ps.waitFor()==0) { System.out.pr

Categories : Java

How to install command line tools on OSX Mavericks
Incase, while trying to update a bundle, you get an error "You have to install development tools first." on OSX Mavericks (OSX 10.9), but you already have Xcode installed, you can still manually install the dev tools via terminal: xcode-select --install Do that and follow on-screen instructions. Your problem will be solved.

Categories : Ruby

install gem from command line vs changing gemfile
The reason to use a Gemfile is that you can install all required gems in a single go. Imagine that you work in a development team and a new member starts contributing to your application. Al he has to do is checkout the repository and run bundle install. Only use the command gem install if you just want to install a gem that is not nessecarily relevant to your project. If the project requires the gem; put it in the Gemfile.

Categories : Ruby On Rails

How to propose a new trove classifier on PyPI
Seems that requests like this are usually submitted through the bugtracker (on sourceforge or bitbucket). You should try on one of them, SF seems to be more active.

Categories : Python

reStructuredText: README.rst not parsing on PyPI
You are using a newer text role, :code:. PyPI appears to only support docutils 0.8, with code and code-block added to the PyPI parser directly, which means that :code: is not supported. GitHub uses a newer version of docutils (0.9 or 0.10). Remove the :code: altogether: :code:`sentiment` with: `sentiment` etc.

Categories : Python



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.