python-package-example | simple example | Machine Learning library
kandi X-RAY | python-package-example Summary
kandi X-RAY | python-package-example Summary
A simple example of creating and consuming a distributable Python package.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Test a bar function
- Print the bar function
python-package-example Key Features
python-package-example Examples and Code Snippets
Community Discussions
Trending Discussions on python-package-example
QUESTION
I think I found "a feature", where under some weird conditions pip
lists a package as installed even though it isn't. If someone could explain me what is going on - that would be nice. Here are steps to reproduce:
setup two python environments:
$ python3 -m venv env_1 && python3 -m venv env_2
get any normal python package with setup.py for the installation, I personally used the first thing I found on the internet:
$ git clone https://github.com/BillMills/python-package-example.git
activate env_1:
$ . env_1/bin/activate
install the package you got as a development package:
$ pip install -e python-package-example
deactivate env_1, activate env_2:
$ deactivate && . env_2/bin/activate
go inside of the package you just installed for env_1 and list the installed packages (for the env_2):
$ cd python-package-example && pip list
For whatever reason this shows python-package-example as already installed. Works only while you are inside of this folder though, and only after you installed the thing once as a development package.
P.S. python3 -m pip show python-package-example
in env_1
shows:
ANSWER
Answered 2019-Oct-24 at 22:30I cannot reproduce:
QUESTION
- I created a python project named PythonApplication
- I created a virtual environment env (Python 3.6 (64-bit))
- I run the following in the virtual environment directory
...
ANSWER
Answered 2018-Feb-25 at 19:49The package you are using from https://github.com/BillMills/python-package-example is using an import style not supported in Python 3. You can see in python-package-example/__init__.py that
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install python-package-example
You can use python-package-example like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page