At least 441 members of Poland's lower house of parliament, have voted in favour of legislation to allow prescription-only marijuana or cannabis-based medicine to be made at pharmacies using imported ingredients.

The EU member follows in the steps of the Czech Republic, Finland, the Netherlands, Portugal, Spain, as well as 23 US states and Uruguay, which in 2013 became the first country to make marijuana entirely legal.

The law, which still needs to be approved by the Senate and the Polish president to come into force, excludes the recreational use of cannabis.

Lawmakers rejected the possibility to cultivate marijuana for medicinal purposes in Poland, which had been included in the draft legislation.

The bill to make marijuana legal was tabled last year by Piotr Marzec-Liroy, a rapper-turned-politician who at the time belonged to the Kukiz'15 anti-establishment movement and is now an independent.

An opinion survey conducted in January found that 78% of Poles believe access to marijuana should be legal.