Questions tagged [packages]

For questions relating to the use of or naming of packages in Java, Scala, Python and other languages.

A package is a group of functionalities that can be included into a program. The package may contain functions, constants, classes, etc.

3140 questions
707
votes
13 answers

How do I remove packages installed with Python's easy_install?

Python's easy_install makes installing new packages extremely convenient. However, as far as I can tell, it doesn't implement the other common features of a dependency manager - listing and removing installed packages. What is the best way of…
ire_and_curses
  • 64,177
  • 22
  • 110
  • 139
600
votes
7 answers

Can I force pip to reinstall the current version?

I've come across situations where a current version of a package seems not to be working and requires reinstallation. But pip install -U won't touch a package that is already up-to-date. I see how to force a reinstallation by first uninstalling…
orome
  • 35,904
  • 38
  • 156
  • 345
569
votes
27 answers

Can you find all classes in a package using reflection?

Is it possible to find all classes or interfaces in a given package? (Quickly looking at e.g. Package, it would seem like no.)
Jonik
  • 74,291
  • 66
  • 249
  • 356
494
votes
7 answers

Installing a local module using npm?

I have a downloaded module repo, I want to install it locally, not globally in another directory? What is an easy way to do this?
fancy
  • 41,315
  • 56
  • 147
  • 225
401
votes
3 answers

How to view hierarchical package structure in Eclipse package explorer

OK here's what I would like: in the Eclipse package explorer, I see the following: (dot represents a clickable arrow that I can use to expand the folder) PROJECT Source Folder Package Class…
Philip
  • 6,273
  • 3
  • 21
  • 28
383
votes
29 answers

Elegant way to check for missing packages and install them?

I seem to be sharing a lot of code with coauthors these days. Many of them are novice/intermediate R users and don't realize that they have to install packages they don't already have. Is there an elegant way to call installed.packages(), compare…
Maiasaura
  • 29,590
  • 23
  • 96
  • 103
262
votes
16 answers

Sibling package imports

I've tried reading through questions about sibling imports and even the package documentation, but I've yet to find an answer. With the following structure: ├── LICENSE.md ├── README.md ├── api │   ├── __init__.py │   ├── api.py │   └──…
zachwill
  • 3,294
  • 3
  • 16
  • 17
248
votes
4 answers

How do I find a list of Homebrew's installable packages?

Recently I installed Brew. How can I retrieve a list of available brew packages to install?
dnlcrl
  • 4,582
  • 3
  • 29
  • 39
228
votes
4 answers

Where does R store packages?

The install.packages() function in R is the automatic unzipping utility that gets and install packages in R. How do I find out what directory R has chosen to store packages? How can I change the directory in which R stores and accesses packages?
Milktrader
  • 7,950
  • 11
  • 48
  • 67
205
votes
3 answers

How do I write good/correct package __init__.py files

My package has the following structure: mobilescouter/ __init__.py #1 mapper/ __init__.py #2 lxml/ __init__.py #3 vehiclemapper.py vehiclefeaturemapper.py …
Marten Bauer
  • 2,053
  • 2
  • 13
  • 4
195
votes
10 answers

Load multiple packages at once

How can I load a bunch of packages at once with out retyping the require command over and over? I've tried three approaches all of which crash and burn. Basically, I want to supply a vector of package names to a function that will load…
Tyler Rinker
  • 99,090
  • 56
  • 292
  • 477
195
votes
19 answers

Does Android keep the .apk files? if so where?

After android installs an application from the Marketplace, does it keep the .apk file? Is there a standard location where Android would keep such files?
Gubatron
  • 5,581
  • 5
  • 31
  • 35
193
votes
3 answers

How Do I Document Packages in Java?

In the Java APIs I can see Javadoc comments for packages. How/where do I place Javadoc comments to document a package?
jjnguy
  • 128,890
  • 51
  • 289
  • 321
192
votes
5 answers

Does uninstalling a package with "pip" also remove the dependent packages?

When you use pip to install a package, all the required packages will also be installed with it (dependencies). Does uninstalling that package also remove the dependent packages?
Hossein
  • 33,283
  • 53
  • 126
  • 172
163
votes
12 answers

Painless way to install a new version of R?

Andrew Gelman recently lamented the lack of an easy upgrade process for R (probably more relevant on Windows than Linux). Does anyone have a good trick for doing the upgrade, from installing the software to copying all the settings/packages…
Shane
  • 92,684
  • 33
  • 219
  • 216
1
2 3
99 100